Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

show message yes no


This topic is 8197 days old. Please don't post here. Open a new topic instead.

Recommended Posts

This is probably really simple for FMP pros but I can't figure it out. Here is what I need to do. A user clicking a button on a record triggers the Show Message step and after reading the question in the dialog box they click Yes or No. I've got that so far. Now, depending on which button they clicked, I need the script to insert Yes or No into a "YesNo" text field. Can anyone help me?

Thanks!

Joe

Link to comment
Share on other sites

After the show message script step, try using the status(currentmessagechoice)script step in an "if" script step. Depending on what you use for your default choice, you may have No as the default and Yes as choice number 2. Then have the if step determine if the currentmessagechoice equals 1(default) or 2 and depending on that, have the field changed to yes or no accordingly.

Link to comment
Share on other sites

Show Message ["Is that a yes or a no?"]

Set Field [YesNo, Choose (Status (CurrentMessageChoice), "", "Yes", "No")]

Be sure to include the "" (blank) as above, since the first argument of the Choose function is zero.

Link to comment
Share on other sites

This topic is 8197 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.