Skip to main content

Notifications

Announcements

No record found.

Power Platform integration forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans