0

Is there any risk or drawbacks on editing SharePoint online list new form in SharePoint designer by Modifying the underlying HTML . I was trying to Hide some fields from new form only. I did it by removing or commenting the HTML on SharePoint designer. I'm just wondering if there is a risk associated with that because I'm changing the underlying form code. Is there a better way to do it without using two content type?

1

Yes, there is a risk. Updates from the SharePoint team will not show up in your form. The change you make is stored in the Content database and you have to update it manually. You can revert your change from the site settings page at a later time if you want, and then you will get updates from the SharePoint team.

Hide columns can be made just by setting the column to read only or hidden.

If that does not work out for you, a more complex but more flexible way is to create a JSLink configuration for that column.

2

as mangnus noted but if JSlink doesn't suffice you can also need to mention that you can create your own form (new/edit/display) within SPD for a given list so you dont edit the out of the box form and then set them to default form.

you would find it here:

enter image description here

clicking on the new button shows:

enter image description here

  • Thanks Ali, Do you have a sample JSlink to hide fields? thanks – Jen Nov 29 '17 at 15:24

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.