conditional logic - e.g., hide if empty fields
by dmichaels on 12 Mar 2014 15:03 | 2487 Hits | 1 comment(s)
It would be great if we had the ability to insert simple conditions in the "layout" section of each form. For example, for a field called "color", the following code in the layout template would hide it if it was not entered by the user: {if color}Your color is {color}{/if}.
I've seen similar things done with CCKs that use the Smarty template system. If Smarty were used, administrators would have a wide array of options to configure the template without using overrides.
There is something similar in place when using the default description template: Components > RSDirectory! > Forms > edit a form.
Quote