Skip to main content
Power Platform integration forum

PreventDefault() in javascript web resource working in Dev but not in UAT

editSubscribe (1) ShareShare
ReportReport
Posted on by 2
Hi All,
 
I am working on a model driven app. I have a javascript code that allows the form for table A to be saved only if it has a matching record in table B. If not present in table B, i am preventing the save operation by using Preventdefault(). This code is working fine in the Dev Environment, but once its deployed to UAT and even in Prod, its not working. 
 
i get the notification that there is no matching entry, however, the preventDefault() in the immeediate next line seems to be not working. 
 
Has anyone faced such issue or has any idea on how to resolve it?
 
TIA!
 

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans