Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top