render_configuration
Method | Return type | Description |
---|---|---|
inputs? | boolean | It returns true in input mode and false in preview/export mode |
documents? | boolean | It only returns true in export mode when the attachment option is enabled (paperclip icon in the export page). It returns false in all other scenarios. |
Please see the examples below:
{% if render_configuration.inputs? == true %}
{% comment %}Input view{% endcomment %}
{% input custom.draft.accounts? as:boolean %}Are these draft accounts?
{% elsif render_configuration.inputs? == false and custom.draft.accounts? == true %}
{% comment %}Preview/export view{% endcomment %}
DRAFT ACCOUNTS
{% endif %}
{% ifi render_configuration.documents? == true %}
{% comment %}Only shown in input and export view(when attachments are enabled){% endcomment %}
{% input custom.some.att as:file %}
{% endifi %}
Updated about 3 years ago