0

I have a sharepoint external list with an edit form containing a form field based upon an association. The field is not nullable. I want to prevent edits on the field, so I set controlmode="display". The result is that the save process fails. The form field vanishes and the form is not closed.

This only happens with non-nullable fields based upon associations. I tried to remove the "Required"-check on the corresponding property in the operations of the external content type, but without success. Is there a way to solve the problem?

2 Answers 2

1

Another option is to set it to New, use a default value, and use javascript to disable the field on form load. Then utilize a PreSaveAction function to set the field to enabled and the item can be submitted to the list.

0

Try providing a default value for the Field, either in the actual list columns/content types or directly in the Publishing control.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.