Newbies Varma Posted March 5, 2009 Newbies Posted March 5, 2009 Hi, I am new to programming and I am using File Maker Pro 8 advanced. I have requirement in which I have defined the radio buttons for selection of either payment options (Through Bank details or Credit Card details)as: when we select Bank Details radio button it should display the fields of Bank details below and when we select Credit Card details it should show Credit Card fields on the same page. Note: IF there is any option where we can disable the fields when we select a radio button that will also work. Please can anyone suggest me how we can do this. a sample code will be much helpful.
stanley Posted March 6, 2009 Posted March 6, 2009 Hi Varma: Because you are using FMP 8, your choices are a bit limited, and I would suggest using a fairly old trick. This is the simplest method; there are more graceful (and advanced) ways to do this, but this method is pretty easy to follow. You would set up two layouts, where everything is identical except for those fields you want to hide or show, depending on the selection of the radio button. Then, in both layouts, superimpose an invisible button over each of the radio buttons, and write a script for each one. The script would have two steps: Set Field (your_radio_button_field; your_selection) Go To Layout (the_right_layout) In other words, your invisible buttons would intercept the user's selection of one or the other of the radio buttons, and you would then do exactly what the user was going to do (by setting the field) and then you go to the layout which has the appropriate fields to be filled in. Hope that helps. -Stanley
Recommended Posts
This topic is 5739 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