ui-field boolean if true

  • 1
  • Question
  • Updated 3 years ago
  • Answered
  • (Edited)
What is needed to check if this is true in UI-field calculation field?

IF({{Primary_Cell__c}}  == "TRUE","This is the Entity phone number",
Photo of Bill Fox

Bill Fox

  • 8,500 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,300 Points 5k badge 2x thumb

Is Primary_Cell__c a boolean field, and do you mean in a UI-field formula field? If so what you have should work. Another good option if it works for your use case is to use conditional merge syntax. It's in the format of {{#field_name}}show_when_true/has_value{{/field_name}} {{^field_name}}show_when_false/empty{{/field_name}} and you can use it wherever you can use merge syntax. Look under Sections of this tutorial to see an example.