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.

Conditional formatting of button

Featured Replies

I have a several identical buttons (Jobs, Vehicles, Tasks, etc.) that I'm using for navigation among layouts. All of this works OK, but here's what I'm wondering:

If I give each button an object name that corresponds to a layout name, can I use conditional formatting to give that button a different formatting when that particular layout is active? In other words, if I assign the Jobs button the name JobsDetail, can I change the formatting of the Jobs button when the JobsDetail active is active?

I generally know how to use conditional formatting but don't know how to set up this particular formula.

Thanks for any help.

James

www.james-mc.com

Conditionally format the button itself.

Formula: Get ( LayoutName ) = "Job"

Then if the current layout is Job then it should work.

  • Author

Perfect! Thanks for the help!

James

www.james-mc.com

  • 1 month later...

I wanted to take this a step further and omit the need to hardcode at all (actually, to allow more flexibility). And Mr. Vodka solved it was well, so I wanted to include it here:

If you name your buttons the same as your layouts, ie, Customers, Invoices, Products, Preferences etc, then you can use Self. Self refers to the button text. So conditional format can be formula:

Get ( LayoutName ) = Self

Then change the text color to highlight. In this way, all buttons can have the same conditional format. You will need to be careful if you change layout names but this should work well in many instances. Of course there is still 'hardcoding' because the button text is the hardcode. But button text can also be merge fields, calculations etc.

Edited by Guest

  • Author

I wanted to take this a step further and omit the need to hardcode at all

This works well, LaRetta, with one small adaptation. Since I'm naming my layouts as Jobs Detail, Jobs List, Vehicles Detail, etc., my conditional formatting equation now looks like this:

LeftWords(Get ( LayoutName );1) = Self

Now if I just had a way to keep from hard coding specific text into the script parameter in the script attached to each button. When I click the Jobs button, for example, I'd like to have something like Self in the script parameter without having to hand code "Jobs."

Thanks for the help on this!

James

www.james-mc.com

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.