YuChieh Posted September 27, 2004 Posted September 27, 2004 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.
-Queue- Posted September 27, 2004 Posted September 27, 2004 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.
YuChieh Posted September 28, 2004 Author Posted September 28, 2004 Can you please give me more detailed inftructions of doing "indi. transparent button"? And "Disallow access to the field", why need this? Thank you.
-Queue- Posted September 28, 2004 Posted September 28, 2004 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).
YuChieh Posted October 4, 2004 Author Posted October 4, 2004 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.
-Queue- Posted October 4, 2004 Posted October 4, 2004 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
YuChieh Posted October 5, 2004 Author Posted October 5, 2004 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.
Recommended Posts
This topic is 7357 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 accountSign in
Already have an account? Sign in here.
Sign In Now