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.

Changing Tab Color Based on Field Entry

Featured Replies

Hi~

I am looking to see if there is a way, I am assuming using a script trigger, to have the color of a Tab change based on a radio button selection?

For example the Tabs would be "Print" , "Ad", and "Digital".

If a person selected "Print" from a radio button in a field outside the Tab area, it would make the "Print" Tab color turn Red and the text inside white.

Any help would be greatly appreciated!

Thanks All!!

It wouldn't involve a trigger, if anything it could be done with conditional formatting and container calcs fields. Tab fills are not accessible to conditional formatting, so you could add a container whose fill color changes based on the value in another field.

However, I'm not sure your data model is the best it could be. Seems like you have a parent that has a type, "Print", "Ad" or "Digital." (It would be best to have those choices in a table and simply store their keyID in your parent record. It'll allow for more accurate Finds, and easier addition of new types.)

Now, given the type, you'd like to complete a set of fields. For Print, there's one set, for "Ad" another, etc.

So, this is a subtype model. Depending on how many fields are specific to each type, they may be in a separate table from the parent.

Alternately, I've seen the use of invisible tabs. That is, when the user selects a type, a script trigger navs to a named tab panel object, and displays the corresponding fields. They don't see the three tabs at all. However, this does start putting you in a box (because if you eventually have many subtypes, you're hard-coding tab panels).

hth,

Barbara

  • Author

Thanks Barbara!

The coloring is really only needed as an identifying when viewing the record. Could a script trigging using a Layout Attribute be the answer to that?

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.