Forum Discussion
how i can add a "PreSaveItem()" function inside the modern UI
You cannot inject JavaScript and/or modify out of the box forms in Modern UI with client side code. If you need to customize forms, you will need to use PowerApps, or stay in the classic UI.
- john johnMar 04, 2019Iron Contributor
Beau Cameron wrote:You cannot inject JavaScript and/or modify out of the box forms in Modern UI with client side code. If you need to customize forms, you will need to use PowerApps, or stay in the classic UI.
Beau Cameronthanks for your reply.
Yes i know that inside modern UI i can not edit the Edit/Create list forms... But if i chose power-apps then can i inset a script which will run before the form is submitted? similar to how the "PreSaveItem()" works?
- Beau CameronMar 04, 2019MVP
In PowerApps, there is no "injecting" a script. However, you can do this type of validation within PowerApps, using the PowerApps Language (similar to DAX).