0

I am working on an Enterprise wiki site collection. now if i am using the built-in Edit form it will automatically show any new field added to the Enterprise-wiki content type.

But now i wanted to hide specific fields only from the edit form and keep them inside the create & view forms. To be able to do so, i created a custom edit form and i added Display:none for all the fields i want to hide. This worked well ,, but now if i added a new field to the enterprisewiki content type it will not be shown automatically inside the custom edit form,, while if i am using the built-in edit form the field will be shown.

now i created a custom edit form , because inside the built-in edit form i can not see the markup for the fields to add Display:none , while in the custom edit form i can see the markup and add any custom HTML to it.

so can anyone adivce on this please?

Thanks.

1

This is expected when you create a custom editform, and changes to the underlying list structure like fields being created manually or via a content type do not show up. They must be added manually in the custom form.

Sharepoint has behaved this way since 2007 that I know of, and presumably in 2003 and 2001. You are essentially breaking the dynamic association by inserting a custom EditForm. It pulls down the information at that time and then becomes static.

  • so what is the idea behind this ? also inside the built-in edit form the only way to hide fields is to use javascript, and i do not want users with java script disabled to be able to access these fields .... – john Gu May 20 '15 at 15:35
  • 1
    The default editform will respect the form field settings, if you have a field set to hidden, it will hide it, this again has been unchanged since 2007 that I know of. – Eric Alexander May 20 '15 at 15:38
  • so using a custom edit form will break many SharePoint features... – john Gu May 20 '15 at 15:42
  • Anything custom has the potential to break or impact functionality. This is why they are pushing for people to not do custom master pages and use things like JSLink and CSR to handle the customizations. – Eric Alexander May 20 '15 at 15:45
  • but on many documentations they mentioned that SharePoint support using custom master pages, or using custom edit forms ,, so in my case when i use custom edit form could it break any functionalities? – john Gu May 21 '15 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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