Is it possible to use FormIt with Fred? I’ve tried making a really simple form work but it doesn’t send the email and it doesn’t redirect to the success page. If I use the same code on a non-Fred page it works though.
Fred element:
<div data-fred-name="formitcall" data-fred-editable="false">
[[!FormIt?
&language=`en`
&hooks=`email,redirect`
&emailTpl=`contactEmailTpl`
&emailTo=`myemail@email.com`
&emailSubject=`Test Fred`
&redirectTo=`1`
]]
<form action="[[~[[*id]]]]" method="post" class="form">
<div class="form-group">
<label for="contactMessage" accesskey="m">Message</label>
<textarea value="[[!+fi.contactMessage]]" class="form-control" id="contactMessage" name="contactMessage" rows="3"></textarea>
</div>
<button class="btn btn-primary" type="submit">Submit</button>
</form>
</div>
Option:
{
"remote": true
}