Skip to main content
Nintex Community Menu Bar
Question

Tab label color when based on field


Forum|alt.badge.img+2

have a page with numerous tabs, and five of the tab labels are based on formulas that concatenate text and the value of a field. If there is no record in the model containing the fields, the font of the label is italics and an ugly yellow. How do I change that without creating a record in that model?

Translate
This topic has been closed for comments

13 replies

Forum|alt.badge.img+9

You can suppress the tab with a rendering rule: where model has no data rows. Or did you want to change the text color?

Translate

Forum|alt.badge.img+2

don’t want to suppress the tab, just have the tab labels consistent color

Translate

Forum|alt.badge.img+9

Okay. I’m not clear what you are doing here, as I get different results. If I have no data in IdentityVerification, I get a blank label. If the concatenation formula is part of the tab label, you haven’t shown it: where do “Deal Room” and “Credit Summary” come from?

That said, you might look at the conditional form of merge syntax, something like this:

{{#$Model.NewModel.data.0.NewField}}Has data {{$Model.NewModel.data.0.NewField}}{{/$Model.NewModel.data.0.NewField}}{{^$Model.NewModel.data.0.NewField}}No Data {{/$Model.NewModel.data.0.NewField}}

When NewModel does not have data rows, the tab label would be “No Data.”

[
My NewField is a UI-only formula field, where the formula is:

     "Name = "+{{Name}}

When there is a data row (from the User table, id is user), the tab label is “Has data Name = Mike Dwyer.”
]

Translate

Forum|alt.badge.img+10

What version of Skuid are you running on? We ran into problems with yellow edited text a few months ago. It should be good within the last 5-6 versions of Skuid

Translate

Forum|alt.badge.img+2

yes, I have UI-only fields on the model like - COMBINE_STRINGS("Deal Room ",{{Deal_room_Verification_Flag__c}})

on the tab itself, the label is {{$Model.IdentityVerification.data.0.DealRoomPass}}

Translate

Forum|alt.badge.img+2

skuid 9.5.14

Translate

Forum|alt.badge.img+10

We would recommend upgrading past 11.2.5

Translate

Forum|alt.badge.img+2

so tried this in the tab label -
{{#$Model.IdentityVerification.data.0.DealRoomPass}}Has data {{$Model.IdentityVerification.data.0.DealRoomPass}}{{/$Model.IdentityVerification.data.0.DealRoomPass}}{{^$Model.IdentityVerification.data.0.DealRoomPass}}Deal Room {{/$Model.IdentityVerification.data.0.DealRoomPass}}

and resulting tab reads   Has Data Deal Room (still in yellow)

Translate

Forum|alt.badge.img+2

I’ve played around with this functioanlity and still can’t get it. Even put that merge logic into the UI field formula itself and still can’t get it…

Translate

Forum|alt.badge.img+9
  • Nintex Employee
  • 889 replies
  • July 11, 2024

Hi Brian, if you’re seeing the font in italics and yellow, that normally indicates an unsaved field value. Can you try enclosing the fields in triple mustaches instead of double mustaches? 

Translate

Forum|alt.badge.img+2

Wow, that did it! Thanks!

Translate

Forum|alt.badge.img+9
  • Nintex Employee
  • 889 replies
  • July 11, 2024

Great! Just to explain why I think this works - the triple mustaches will display only the raw value of the field, and ignore any metadata for the rendering. In this case, the field value was unsaved, and that metadata information was being used for the rendering with double mustaches, but skipped for triple mustaches. 

Translate

Forum|alt.badge.img+2

appreciate the follow up, as that really helps me 

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings