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.

Attach script to radio button?

Featured Replies

I have 3 text fields, 'address', 'postal Address' and 'postalAddressSame'.

postalAddressSame is a Yes/No radio button. What I want to achieve is that if postalAddressSame=Yes then the contents of address are copied into postalAddress.

Originally I had postalAddress as a calculation but this doen't allow the user to enter data if postalAddressSame is 'No'.

So now I have a script that check status of postalAddressSame and either pastes address into postalAdress orr pastes "".

How do I attach the script to the radio button so that if Yes or No is clicked the script will run? (using FMP 5)

Thanks in advance

I'd use a calculation. You'll need fields:

Address

Postal Address Entry

Postal Address (calculation) =

If(postalAddressSame = "Yes", Address, Postal Address Entry)

Put the Postal Address Entry field UNDER then Postal Address field. Make the Postal Address field a button defined as "GoToField(Postal Address Entry)"

-bd

Create an account or sign in to comment

Important Information

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

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.