render_configuration

MethodReturn typeDescription
inputs?booleanIt returns true in input mode and false in preview/export mode
documents?booleanIt 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 %}