Change the Custom Label of Field using Inline Code

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I have many fields where the Custom Label needs to change based on the yes no response to one questions. Feels like an easy "IF" statement in the Inline Code Section, but Javascript snippits in skuid are foreign to me. Am I on the right track?
Photo of Derek McCauley

Derek McCauley

  • 172 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 13,512 Points 10k badge 2x thumb

Someone else just asked a similar question...

The labels support merge syntax.  You can use {{#fieldname}}label{{/fieldname}} to show hide depending upon whether the field 'fieldname' has a value.  Try using a model UI formula field of type 'checkbox' to handle the show/hide.


Photo of Barry Schnell

Barry Schnell, Champion

  • 18,376 Points 10k badge 2x thumb
Hi Derek -

Bill's approach using merge syntax should provide you the easiest solution, however there are some limitations.  I've updated the post at with the details just in case it applies to your situation.