Hi,
I am facing some problem with formit. Let me first describe the background, this site is a one page jquery parallax based. All the content are into one page. Now in 2 different section I have 2 formit form. One is pretty simple with just only 4 field and the other is also simple but have attachment option.
Now the problem I am facing is some time both the forms are working and some time they are not. When I clear the cache from admin backend it is working. But as soon as I am triggering one form the other is not working. Can any body have any idea regarding this. I am using the latest version of modx 2.2.10 and latest version of Formit. I really cannot figure the issue.
https://forums.modx.com/thread/?thread=85738
[[!FormIt? &hooks=`spam,email,redirect` &emailTpl=`job_now_report` &emailSubject=`Application - [[+fname]] [[+lname]]` &emailTo=`[email protected]` &emailBCC=`[email protected], [email protected]` &redirectTo=`20` &submitVar=`application` ]] <form action="[[~[[*id]]]]" method="post" enctype="multipart/form-data"> <h2 class="pop_form_hd">Application</h2> <p class="start_hd">Contact Information</p> <label for="fname" style="display:none;">First Name</label> <input type="text" name="fname" id="fname" class="form_text" value="[[!+fi.fname]]" /> <select name="hearabout" class="gender"> <option>Please Select your Gender</option> <option value="Male" [[!+fi.hearabout:FormItIsSelected=`Male`]] >Male</option> <option value="Female" [[!+fi.hearabout:FormItIsSelected=`Female`]] >Female</option> </select> <label for="contactnumber" style="display:none;">Contact Number</label> <input type="text" name="contactnumber" id="contactnumber" class="form_text" value="[[!+fi.contactnumber]]" /> <label for="lname" style="display:none;">Last Name</label> <input type="text" name="lname" id="lname" class="form_text" value="[[!+fi.lname]]" /> <label for="emailj" style="display:none;">Email Address</label> <input type="text" name="emailj" id="emailj" class="form_text" value="[[!+fi.emailj]]" /> <h2 class="pop_form_hd">Application BRIEF</h2> <label for="fivework" style="display:none;">Mention five work skills that you are proficient in?</label> <input type="text" name="fivework" id="fivework" class="form_text" value="[[!+fi.fivework]]" /> <label for="totalexps" style="display:none;">Mention your total work experience in months</label> <input type="text" name="totalexps" id="totalexps" class="form_text" value="[[!+fi.totalexps]]" /> <label for="start" style="display:none;">When can you start?</label> <input type="text" name="start" id="start" class="form_text" value="[[!+fi.start]]" /> <input type="file" name="contact_attachment" class="form_text" value="[[!+fi.contact_attachment]]" /> <input name="application" type="submit" value="Submit" class="submit"/> </form>
[[!FormIt? &hooks=`spam,email,redirect` &emailTpl=`enquire_now_report` &emailSubject=`Quick Enquiry - [[+name]]` &emailTo=`[email protected]` &emailBCC=`[email protected],[email protected]` &redirectTo=`20` &submitVar=`enquiry` ]] <form action="[[~[[*id]]]]" method="post" class="fill_up"> <h3 class="address_hd">Quick Enquiry</h3> <label for="name" style="display:none;">Name</label> <input type="text" name="name" id="name" value="[[!+fi.name]]" class="enfield" /> <label for="email" style="display:none;">Email</label> <input type="text" name="email" id="email" value="[[!+fi.email]]" class="enfield" /> <label for="phone" style="display:none;">Phone</label> <input type="text" name="phone" id="phone" value="[[!+fi.phone]]" class="enfield" /> <label for="message" style="display:none;">Comments</label> <textarea name="message" rows="3" class="hexa_message text-label" id="message">[[!+fi.message]]</textarea> <input name="enquiry" type="submit" value="Submit" class="submit"/> </form>
Can you post your Formit calls here (with personal info removed)? I am wondering if there is caching issues.
Hi Smashingred,
Thank for your reply
Please find the below code of call.
My first formit call with attachment.
[[!FormIt? &hooks=`spam,email,redirect` &emailTpl=`job_now_report` &emailSubject=`Application - [[+fname]] [[+lname]]` &emailTo=`[email protected]` &emailBCC=`[email protected], [email protected]` &redirectTo=`20` &submitVar=`application` ]] <form action="[[~[[*id]]]]" method="post" enctype="multipart/form-data"> <h2 class="pop_form_hd">Application</h2> <p class="start_hd">Contact Information</p> <label for="fname" style="display:none;">First Name</label> <input type="text" name="fname" id="fname" class="form_text" value="[[!+fi.fname]]"> <select name="hearabout" class="gender"> <option>Please Select your Gender</option> <option value="Male" [[!+fi.hearabout:formitisselected="`Male`]]">Male</option> <option value="Female" [[!+fi.hearabout:formitisselected="`Female`]]">Female</option> </select> <label for="contactnumber" style="display:none;">Contact Number</label> <input type="text" name="contactnumber" id="contactnumber" class="form_text" value="[[!+fi.contactnumber]]"> <label for="lname" style="display:none;">Last Name</label> <input type="text" name="lname" id="lname" class="form_text" value="[[!+fi.lname]]"> <label for="emailj" style="display:none;">Email Address</label> <input type="text" name="emailj" id="emailj" class="form_text" value="[[!+fi.emailj]]"> <h2 class="pop_form_hd">Application BRIEF</h2> <label for="fivework" style="display:none;">Mention five work skills that you are proficient in?</label> <input type="text" name="fivework" id="fivework" class="form_text" value="[[!+fi.fivework]]"> <label for="totalexps" style="display:none;">Mention your total work experience in months</label> <input type="text" name="totalexps" id="totalexps" class="form_text" value="[[!+fi.totalexps]]"> <label for="start" style="display:none;">When can you start?</label> <input type="text" name="start" id="start" class="form_text" value="[[!+fi.start]]"> <input type="file" name="contact_attachment" class="form_text" value="[[!+fi.contact_attachment]]"> <input name="application" type="submit" value="Submit" class="submit"> </form>
My second formit call its just a simple four field form
[[!FormIt? &hooks=`spam,email,redirect` &emailTpl=`enquire_now_report` &emailSubject=`Quick Enquiry - [[+name]]` &emailTo=`[email protected]` &emailBCC=`[email protected],[email protected]` &redirectTo=`20` &submitVar=`enquiry` ]] <form action="[[~[[*id]]]]" method="post" class="fill_up"> <h3 class="address_hd">Quick Enquiry</h3> <label for="name" style="display:none;">Name</label> <input type="text" name="name" id="name" value="[[!+fi.name]]" class="enfield"> <label for="email" style="display:none;">Email</label> <input type="text" name="email" id="email" value="[[!+fi.email]]" class="enfield"> <label for="phone" style="display:none;">Phone</label> <input type="text" name="phone" id="phone" value="[[!+fi.phone]]" class="enfield"> <label for="message" style="display:none;">Comments</label> <textarea name="message" rows="3" class="hexa_message text-label" id="message">[[!+fi.message]]</textarea> <input name="enquiry" type="submit" value="Submit" class="submit"> </form>
Now it is working some time and some time not.
Quote from: smashingred at Jan 22, 2014, 09:35 AMCan you post your Formit calls here (with personal info removed)? I am wondering if there is caching issues.