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 Member Posts: 373
    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 Member Posts: 2
    Yes, can YouTube provide me with exampe code?
  • krikikriki Member, Moderator Posts: 8,922
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV/Navision Classic Client' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
    NAV TechDays 2020: 19 & 20 November 2020, Antwerp (Belgium)
  • wolfskinwolfskin Member Posts: 83
    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.