Message after select an fieldoption

I have a field, type:option. Option1,Option2.
If i select Option 2 in a form I would like to get a message " you selected 2,are you sure".

Can someone give me the code how to do this.

Thanx !


  • SanderDkSanderDk Posts: 310Member
    You can add code onValidate trigger in table to accomplish this.
    For help, do not use PM, but use forum instead, perhaps other people have the same question, or better answers.
  • Peter18Peter18 Posts: 2Member
    Yes, can YouTube provide me with exampe code?
  • BlackTigerBlackTiger Posts: 1,226Member
    Peter18 wrote: »
    Yes, can YouTube provide me with exampe code?

    Read developer's manuals.
    "You can’t just ask customers what they want and then try to give that to them.
    By the time you get it built, they’ll want something new.” Steve Jobs
  • krikikriki Posts: 8,794Member, Moderator
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV/Navision Classic Client' forum]

    Regards,Alain Krikilion
    Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
    NAV TechDays 2019: 21 & 22 November 2019, Antwerp (Belgium)
  • wolfskinwolfskin Posts: 72Member
    Peter18 wrote: »
    Yes, can YouTube provide me with exampe code?

    Just like SanderDk said, you can code like this to onValidate trigger in table.

    IF NOT CONFIRM('You selected %1, are you sure?',TRUE,FORMAT("Option Field")) THEN

    If you would like to learn more about CONFIRM function, please go to this link:
Sign In or Register to comment.