Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hello everyone,

I am trying to display a button with script when the value of input is EMAIL in type field. I want to click that button to set as primary email.

The button will not show up if value is not EMAIL.

Is this possible to do? Please help.

Thanks in advance!

Posted (edited)

There are two ways,

With a "trick" this is by creating a mask using a single row portal that covers the button.

create a field called = MaskButton that is a calculation of "email" result as text. Then create a relationship between this and your type field.

MaskButton = TypeField

Put a single row portal on the layout the same size as your button put your button in the portal row. Now when you modify the value of your type field and it equals "EMAIL" your relationship is valid and your button is visible and clickable.

Alternative you could use conditional formatting on your button to match the same color as your background if it doesn't equal to EMAIL - however the line weight may not change according to your style. Also you would have to add a condition to your script to test the condition of your type field. If the button is virtually invisible the user could still click the area where the button is and it would give them a flash and your script will trigger this is why you need to add the condition to your script.

Edited by Guest
Posted

Thanks OceanWest for the fast reply.

I am still working on my database so I still have time to try your suggestion.

Will let you know if everything works out fine ( I really hope so)

:)

Posted

Here is thread with a sample file that uses the technique that Stephen has described the steps to you.

http://www.fmforums.com/forum/showtopic.php?tid/177010

Posted

Thanks Mr Vodka. I was trying to do what OceanWest has suggested, I need a little help with that.

But happy with this thread. I will look at it and see if I can work it out on my own.

This topic is 6102 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.