Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Form data Validation

Posted on by 80

Quite a regular scenario, I have a Form with few fields including Date fields and a few child records.that user can edit. On doing the Edit and then selection of a certain Option from the OptionSet within Form I want to validate the Form data and the associated child records data and give a Text error message to user in case of failure so that he can correct his data entry. The issue here is that Javascript is not preferable as an option which leaves me with Plugin or Workflow to do the validation and both throw a message which is not exactly user friendly with 'Business Process Error' heading on top. Is there a better way that I can do this or have I hit a wall.

  • Pramod M Profile Picture
    Pramod M 1,445 on at
    RE: Form data Validation

    Hi,

    You can use JavaScript to call an action which can return the validation error or success message(since you have related records data, this is one of the good option). You can then show this as an alert.

    Or in JavaScript itself you can retrieve all the related records data, validate and show the alert.

    Hope this helps.

Under review

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

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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