Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Radio Button options

Featured Replies

  • Newbies

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.

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

  • Author
  • Newbies

Thanks a lot Stanely.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.