July 15, 201015 yr Hello, I've been using EventScript plugin successfully for running a script when a field is set to a specific value (an on/off radio button field). Can FM 11 do this natively? I can't seem to find any mention of this functionality anywhere. Thanks, Alvise
July 15, 201015 yr Yes, FM11 can do this natively. http://www.filemaker.com/help/html/script_trigg.38.4.html#1028556
July 15, 201015 yr Author Thanks for your reply. However, I don't want the script to be triggered when the value changes, I want it to trigger when the field is set to a SPECIFIC value. Is this possible?
July 15, 201015 yr No, you cannot have the script triggered only when a specific value is entered, but you can have the script do nothing if the specific value is not entered. Make the script something like this: If [myTable::myField = "special value"] Show Custom Dialog ["Hey!"; "You entered a special value"] End If
July 15, 201015 yr Author This may work in the field I'm working with since there are only 2 possible choices, one of which triggers the script. However, it will not work, or rather it would need a work around to really do what I want. I'll stick with EventScript for now, since it is very easy to use and works very well. Thanks again.
July 15, 201015 yr Author Sorry, I mean it would need a work around if I have more than 2 choices for the field.
July 15, 201015 yr However, it will not work, or rather it would need a work around to really do what I want. Why ? What do you really want ?
July 15, 201015 yr Author The field is an "On/Off" switch: "0" = Off, "1" = On, by value list, radio button. When turned "On" the field triggers a script. If the field is cleared (value deleted), or set to "0", the script should not trigger.
July 15, 201015 yr A triggered script can verify the field value and go on with next steps ONLY if the "On" is its content.
July 15, 201015 yr Author Sorry. Now I see. This is in fact usable! Furthermore the checking of the field value as the first step in the script should have been part of the script all along in order to avoid false triggers, even with the plugin solution I was using. Thanks Again!
Create an account or sign in to comment