Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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