Newbies KPDtech Posted February 6, 2007 Newbies Posted February 6, 2007 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.
John Mark Osborne Posted February 6, 2007 Posted February 6, 2007 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
Newbies KPDtech Posted February 7, 2007 Author Newbies Posted February 7, 2007 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
John Mark Osborne Posted February 7, 2007 Posted February 7, 2007 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.
Recommended Posts
This topic is 6501 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