Forum Discussion
john john
Mar 04, 2019Iron Contributor
how i can add a "PreSaveItem()" function inside the modern UI
I have a custom list inside our sharepoint on-premises 2013, where i added the following "PreSaveItem()" script inside the Edit/Create list forms:- function PreSaveItem(){ //codes goes here if(...
john john
Mar 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 Cameron
Mar 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).