-
Notifications
You must be signed in to change notification settings - Fork 7
/
form.njk
21 lines (19 loc) · 898 Bytes
/
form.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% if form and form.type == "api" %}
{% if form and form.subtype == "whitelabel" %}
{% set formurl = env.ZOHO_FORM_WHITELABEL_URL or env.ZOHO_FORM_API_URL or env.ZOHO_FORM_URL %}
{% elif form and form.subtype == "sbi_kiosk" %}
{% set formurl = env.ZOHO_FORM_SBI_KIOSK_URL or env.ZOHO_FORM_API_URL or env.ZOHO_FORM_URL %}
{% else %}
{% set formurl = env.ZOHO_FORM_API_URL or env.ZOHO_FORM_URL %}
{% endif %}
{% set clsform = form.type %}
{% elif form and form.type == "retail" %}
{% set formurl = env.ZOHO_FORM_RETAIL_URL or env.ZOHO_FORM_URL %}
{% set clsform = form.type %}
{% else %}
{% set formurl = env.ZOHO_FORM_URL %}
{% set clsform = '' %}
{% endif %}
{% if formurl %}
<iframe class="form-frame {{ clsform }}" title="Signup Form" frameborder="0" loading="lazy" src='{{formurl}}?referrername={{form.referrername or page.fileSlug}}&pn={{form.product}}'></iframe>
{% endif %}