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.

Showing button depends on input

Featured Replies

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!

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

  • Author

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)

:)

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

  • Author

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.

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.