Form set in markdown.

Hello Guys,

I tried to migrate my existing website from Statamic V2 - V3, I am facing issue in forms.

In V2, we have include the below code in Markdown which worked well. But in Version 3, it throwing error. I have tried to place this below code in ANTLERS file working fine. But Can't able to use from markdown.


A form handle is required on Form tags. Please refer to the docs for more information


 {{ form:set is="pay-per-click"}}
    {{ if {form:success} }}
    {{ form:submission }}
    Thanks your, {{ name }}.<br />
    Our executives will reach you to your email {{ email }}
    {{ /form:submission }}
    {{elseif {form:errors} }}
        {{ form:errors }}
        <li style="color: #FF5722 !important">{{ value }}</li>
        {{ /form:errors }}
    <div style="text-align: center">
        <a href="/forms" style="color: #03bc8f !important">Submit Again</a>
    {{ form:create  }}
    {{ fields }}
    <div class="form-group">

        <input type="text" class="form-control" name="{{ handle }}" value="{{ value }}" />

    {{ /fields }}
    <button class="btn btn-primary btn-block">Submit</button>
Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
1 Reply