{function form_field_html field=[] is_template=0} {$captionplace = $field.captionplace|default:'left'} {if $field.id === '!horizontal_rule' || $field.id === '!paragraph'} {$captionplace = 'none'} {/if}
{if isset($field.caption)} {$field.caption|escape} {else} {$field.name|escape} {/if} {if !empty($field.required) && $field.id !== '!captcha'} *{/if}
{if $field.id !== '!agreement_checkbox'}{$field.html}{/if}
{$field.html}
{/function} {function form_available_field field=[] classes=[] disabled=false} {$_is_contact_field = $field.form_field_type === crmFormConstructor::FIELD_TYPE_CONTACT}
  • {$field.name|escape}{if $field.required_always|default:''} *{/if} {if $field.id === 'password'} [`Allows your subscriber to create a password for further authorization on your site and log in to their customer portal. Requires Email field in the form.`] {/if}
  • {/function}
    {$_checked_fields = $form.params.fields} {foreach $_checked_fields as $field} {form_field_html field=$field} {/foreach} {foreach $available_fields as $field_id => $field} {form_field_html field=$field is_template=1} {/foreach}
    [`Add fields`]
    [`Form width (200-600px)`]
    [`After form submission`]

    [`This setting will redirect clients to any specified URL or display any text message after the form is submitted.`]

    [`After successful submission:`]

    [`Confirm registration`]
    {$email_checked = $available_fields.email.checked > 0}

    [`To enable this option, your form must contain Email field.`]

    [`An automatic notification will be sent to a subscriber‘s email address, with a special link to be clicked for a client to confirm registration. You may add extra instructions for your clients to the notification text.`]

    {$blocks.form_with_contact|default:''} {$blocks.form_create_deal|default:''} {$blocks.form_responsible|default:''}
    [`Messages`]
    {$messages_block}
    {if $form.id}
    [`Publication`]

    [`To publish this form on your website use this code:`] {if $form.id > 0} {literal}{$wa->crm->form({/literal}{$form.id}{literal})}{/literal} {else} [`Will be available after saving`] {/if}

    [`To publish the form on external site use this code:`] iframe

    {/if}
    {$wa->csrf()} [`or`] [`cancel`]
    {if $form.id > 0} {/if}