Jump to content
Server Maintenance This Week. ×

Attach script to radio button?


This topic is 8500 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 8500 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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