Forum Discussion

Awake Kapoor's avatar
Awake Kapoor
Copper Contributor
Oct 06, 2017

How to link custom javascript in Modern UI List forms

Hi ,

 

I am working on SharePoint online with Modern UI, i just want to add some javascript in one of my List forms to add some custom validation, as we earlier do in classic UI we can add the CEWP with custom JS link, but what we can do in modern UI ? If i return to classic view and add custom JS then again back to modern UI that javascript is not working

7 Replies

  • Hi Awake!

    It can be a little bit tricky even with an SPFx extension. I can recommend you to take a look at a 3-rd party solution - https://plumsail.com/forms/. This tool allows you to design responsive forms for Modern UI and provides a lot customization capabilities. Find some https://plumsail.com/docs/forms/how-to/dynamic-forms-js.html.

    • Awake Kapoor's avatar
      Awake Kapoor
      Copper Contributor

      SPFX extension is not released yet also it would be common for all the pages not specifically for NewForm.aspx and EditForm.aspx, do i need to put URL specific condition ?

      • Pieter Veenstra's avatar
        Pieter Veenstra
        MVP
        As far as I know there is no other option then waiting for the GA release. I guess you could start developing with the latest RC.

Resources