September 27, 200421 yr I have a value list (radio buttons) that contains three values (in the same field). I would like to make a script that when a user checks one certain value, send an alert email to someone. So far, I made the whole value list field connect to the script. So no matter which button to check, the script is activated, which is not what I want. Please help. I am totally new to FileMaker Pro. Thank you.
September 27, 200421 yr Put individual transparent buttons over each radio button option and attach them to separate scripts. Each script will Set Field [field, "selectedoption"], then perform a Send Mail step, or whatever other steps you want. Disallow access to the field, unless you have an option that should only make a selection and do nothing else, in which case you wouldn't need a button over that option.
September 28, 200421 yr Author Can you please give me more detailed inftructions of doing "indi. transparent button"? And "Disallow access to the field", why need this? Thank you.
September 28, 200421 yr You can create a circle and format it as a button. To make it transparent, set its background to the same colour as the field's background and set the pen width to 'none' so there is no border. Put this button over one of the field's options so that it lines up nicely. Then format it to perform a script to set the field with the particular option and whatever other steps you want to occur. You wouldn't have to disallow access, but it can make it look nicer and prevent anyone from tabbing into the field and bypassing the buttons. If you do allow access, you'll want to remove the field from the tab order (in Layout Mode, select Layouts -> Set Tab Order).
October 4, 200421 yr Author works only half way. When I first click on this radio button (one of the options), it works. If I click on options first, then click on this button, the script button doesn't work. Thanks.
October 4, 200421 yr The transparent buttons take the place of clicking the individual options. See attached for a simple example. Click over one of the button options in layout mode to see the buttons and how they are formatted. Yesno.zip
October 5, 200421 yr Author Working now. I found that under radion buttons field, go to Field Format, I had "Behavior, Allow entry into field" checked, which caused the problem. Thank you for the sample. it helped.
Create an account or sign in to comment