Hi,
How can I show validation errors on forms using plugins? I want to run this plugin on update and show a validation error after the plugin runs, if the user enters incorrect data.
*This post is locked for comments
Hi,
How can I show validation errors on forms using plugins? I want to run this plugin on update and show a validation error after the plugin runs, if the user enters incorrect data.
*This post is locked for comments
Hi Tahir ,
You can use Actions with Plugins. Please refer below link for help.
missdynamicscrm.blogspot.in/.../crm-2013-utilize-custom-action-as.html
Hi Moh,
If you want to use show only the notification, you can just use throw new invalid plugin exception.
If you want to "convert" and show it as form notification
Hope my old blog post can help:
THanks
Hi Tahir,
You can update validation details in a field within form itself. Using that field value, you can display it as form notifications with the help of javascript which should be implemented onload event of form.
www.powerobjects.com/.../dynamics-crm-alert-and-notification-javascript-methods
Mansoor
Hi Saad,
I want to show the error message to the user on the form.
You can use try and catch block and throw invalid exception message in the catch block
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156