Is it possible to customize list form fields on NewForm/EditForm if you are using modern experience functionality? I would like to inject some JavaScript to hide certain fields if others are empty - this was fairly straightforward in SP 2013, but not so much in Office 365.


1 Answer 1


Unfortunately, in Modern Experience, you can't customize the page to add JS or custom CSS as we did in classic mode, meanwhile, you can

Supported customizations for Modern Experience Page

  • Custom branding like custom themes
  • Adding "modern" pages programmatically
  • Adding, deleting, updating client-side web parts on "modern" pages

Unsupported customizations for Modern Experience Page

  • Custom master pages
  • More extensive branding will be supported later using alternative options
  • Custom page templates (layout templates) and Alternative layouts
  • Adding "classic" web parts on "modern" pages
  • Custom CSS via AlternateCSSUrl web property
  • Custom JavaScript embedded via User Custom Actions

Check also


Your Answer

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

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