Conditional Document Elements
Jump to navigation
Jump to search
Features Added
- You can add "render" attribute to any html element to evaluate whether or not that element needs to be displayed.
- You can access the element itself and the context object inside of your evaluation
Testing and Validation
- Create a new template document
- Add any element/text
- Edit the source of the document
- Add a "render" attribute with a conditional statement Example:
return 1 == 1;
orreturn contextObject == 'Contact'
- The condition will be evaluated and if the result is 'true', the element will be hidden.