Wednesday, March 25, 2009

Display Logic

I want to hide a field in screen based on another field, (string) starts with CAN.
Example -- City like 'CAN%'

I don't know what was the syntax for 'like' in display logic?
Help me.



Display logic in field tab is used for this purpose. Display logic is a boolean expression that make the field visible when it is evaluated to true. This expression is pseudo javascript (in fact is javascript, but for comparison operators it is used = and ! instead of == and !=). Thus the starts with comparison must be implemented in javascript, for example:


This would hide the field in case its value start wiht CAN (note it is case sensitive)