SugarCRM field visibility dependant on multiple values

I’ve often got cause to make fields in SugarCRM (Professional and Corporate editions) to only appear based on the value of another field. We can do this easily using SugarLogic in Studio using this ‘dependant’ formula:

equal($fieldname_c,”value_1”)

However today I need to make this particular field visible if the field it is dependant on is one of a few values. Thusly a different ‘dependant formula is required:

isInList($fieldname_c,createList(“value_1”,”value_2”,”value_3”))

Hat tip to Anton in Sugar Support for pointing to the ‘ isInList()’ instead of trying to build something with nested ifElse()’s.

Written on October 29, 2013