Skip 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- Yes/No Script

Featured Replies

  • 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.

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

  • 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

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

Important Information

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

Account

Navigation

Search

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.