Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

Mandatory fields in Wizard

Posted on by 593

Hi

We want to create a wizard. There is a tmp table behind and this table has mandatory fields. The fields are split on multiple wizard pages but we get an errormessage that the madatory field are not filled (for the fields placed on other pages.

Is this normal? How can I manage to get the fields on different pages and not checked before everything is done

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,547 Super User 2024 Season 1 on at
    RE: Mandatory fields in Wizard

    Hi, Instead of setting Mandatory property to Yes on Table or form level, add validation code as done in standard wizards. You can add code in setNext method, check the current tab and accordingly add validation for fields associated with that tab.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    RE: Mandatory fields in Wizard

    Hi,

    If you use same table as DataSource for all the pages in the wizard - Then you can remove mandatory property on the table and add validation code manually to check which mandatory fields are missing and throw error at the close of the final wizard page.

    Another approach will be using separate DataSource for each page in the wizard.

    Thanks,

    Girish S.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans