Message after select an fieldoption

Hi,
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 !

Answers

  • SanderDkSanderDk Posts: 64Member
    You can add code onValidate trigger in table to accomplish this.
  • Peter18Peter18 Posts: 2Member
    Yes, can YouTube provide me with exampe code?
  • BlackTigerBlackTiger Posts: 1,181Member
    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,581Member, 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 2018: 22 & 23 November 2018, Antwerp (Belgium)
  • wolfskinwolfskin Posts: 21Member
    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
    ERROR('');


    If you would like to learn more about CONFIRM function, please go to this link: https://docs.microsoft.com/en-us/dynamics-nav/confirm-function--dialog-
Sign In or Register to comment.