Can you use mustache conditional rendering in button labels?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
IBV is a UI only formula field that is true if "Date bid values sent" is not null.

I want to use the statement below as the button label, but it shows "Send Bid Values" whether IBV is true or false:

{{^IBV}}Send Bid Values{{/IBV}}{{#IBV}}Re-send Bid Values{{/IBV}}
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb

Posted 2 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Yup. Just make sure to use the API names of the fields.
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb
Thanks, Pat.  Turns out I was trying to use a model other than the default for the page title section.  This worked:

{{^$Model.RFP.data.0.IBV}}Send Bid Values{{/$Model.RFP.data.0.IBV}}{{#$Model.RFP.data.0.IBV}}Re-send Bid Values{{/$Model.RFP.data.0.IBV}}