April 26, 200223 yr 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
April 26, 200223 yr 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.
April 29, 200223 yr 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.
Create an account or sign in to comment