Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Customization to Validate Inputs before Saving

Posted on by 120

How would one go about validating inputs on a screen prior to saving? I'm primarily concerned with new records (not updating existing records although that could be helpful as well).

  • Verified answer
    street9009 Profile Picture
    street9009 120 on at
    RE: Customization to Validate Inputs before Saving

    Yea I need to do the VB code. I just wasn't sure how to set that up to stop the save action. I know how to code for the logic to determine whether to save or not but I don't know what routine to set up or how to stop the save action. Would need someone with some VB experience to help there.

  • CFROTON Profile Picture
    CFROTON 4,710 on at
    RE: Customization to Validate Inputs before Saving

    Dear Stephen,

    I know there is a List property that can possibly validate. See screenshot.

    I don't know exactly what your trying to do , and you may need VB code behind it, which is beyond my own expertise.

    pastedimage1595008343776v1.png

    Best Regards,

    Jana MacDonald

  • street9009 Profile Picture
    street9009 120 on at
    RE: Customization to Validate Inputs before Saving

    Hey Jana,

    I am looking to validate the values themselves, so I'd need to do it in the VB editor somewhere. Just wasn't sure how to go about validating input fields and then stopping the "Save" action if the validation fails.

    Stephen

  • CFROTON Profile Picture
    CFROTON 4,710 on at
    RE: Customization to Validate Inputs before Saving

    Hello,

    In Customization manager, on the field property page, - To get there click into a field, right click and select properties or F4 in that field.

    The BLANKERR property can be set to True.  This will make a field "required" in the screen. This will not validate the value you put in there, but it will expect the user to input into that field.

    Best Regards,

    Jana MacDonald

    MS Dyn SL support

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans