Hi all,
I'm having an issue with my formit form. I created one on my home page that works perfectly fine a couple of years ago (and it still works ) But I'm trying to create a new one on an inner page of my site. I copied the exact code across to the new page but no joy. Every time I press send it redirects me to a URL that's wrong. At the moment my form is on www.mydomain.ie/parent/child.html and when I press send it redirects me to www.mydomain.ie/parent/parent/child.html. It copies the parent name twice. Has anyone seen anything like this?
My code is below.
<div class="row">
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`myEmailChunk`
&emailTo=`
[email protected]`
&emailSubject=`Form Subject`
&redirectTo=`3`
&validate=`name:required,
email:email:required,
subject:required,
text:required:stripTags`
]]
[[!+fi.validation_error_message:notempty=`<p>[[!+fi.validation_error_message:notempty=`Please enter your details`]]</p>`]]
<form action="[[~[[*id]]]]" method="post" class="form" class="contact-form">
<input type="hidden" name="nospam:blank" value="[[+fi.nospam]]" />
<div class="col-lg-4 col-sm-4 wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="300ms">
<label for="name"><span class="error">[[!+fi.error.name:notempty=`I need your name please`]]</span></label>
<input type="text" name="name" placeholder="Ainm" class="form-control input-box" id="name" value="[[!+fi.name]]">
</div>
<div class="col-lg-4 col-sm-4 wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="600ms">
<label for="email"><span class="error">[[!+fi.error.email:notempty=`Can I have your email too`]]</span></label>
<input type="email" name="email" placeholder="Ríomhphoist" class="form-control input-box" id="email" value="[[!+fi.email]]">
</div>
<div class="col-lg-4 col-sm-4 wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="900ms">
<label for="subject"><span class="error">[[!+fi.error.subject:notempty=`What's it about?`]]</span></label>
<input type="text" name="subject" placeholder="Ábhar" class="form-control input-box" id="subject" value="[[!+fi.subject]]">
</div>
<div class="col-lg-12 col-sm-12 wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="1200ms">
<label for="text"><span class="error">[[!+fi.error.text:notempty=`Please leave a message`]]</span></label>
<textarea name="text" class="form-control textarea-box" placeholder="Do Theachtaireacht" id="text" value="[[!+fi.text]]">[[!+fi.text]]</textarea>
</div>
<button class="btn btn-primary custom-button main-btn wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="1500ms" type="submit">Send Form</button>
</form>
</div>