February 6, 200719 yr Newbies Sorry if been asked but I didn't have any luck finding my answer with search. I am new to Filemaker and have a general idea of what’s going on in it. What am I wanting to do: I have created a Field with a Radio Button of yes and no. I have some fields that I only want to be displayed only if yes selected and do not display the fields when no is selected. What have I done: I have created 2 layouts one with all the fields and one with the fields i don't want to see. I have set the default data type for the Field to no. I have created a script that works the way I want it to but I have to run it manually. Script: if [layout1::fieldname = "Yes"] go to layout ["layout2"] else Go to Layout["layout1"] end if This is everything I have done so far and is about as far as I can figure out dealing with the scripts. Thanks for the help.
February 6, 200719 yr You might want to take a look at the following technique from my web site. It solves your problem in a different way without using multiple layouts or scripts. http://www.filemakerpros.com/Visible7.zip
February 7, 200719 yr Author Newbies Thats a bit to complicated for my entry level of Filemaker and I think it may be too much for my needs. I prefer KIS Keep It Simple
February 7, 200719 yr It sounds like you may want the script to run when you click the radio button. The easiest method is to place a button over the radio button options that runs your script and place that value you want in the radio button. Since you will need one button over the "yes" and another over the "no", you won't need the conditional. Just have the two scripts switch to different layouts. Each script will also use Set Field to place the appropriate value into the radio button.
Create an account or sign in to comment