Hi there,
I have a SafeCracker form with 3 required fields in an EE 2.5.2 build. However, when I enter information correctly in each field and click submit, I then get the errors saying that each field is required, despite completing them.
The form is as follows;
{exp:safecracker
channel="contact_us"
dynamic_title="Enquiry from [cf_contact_us_name]"
id="contactus"
return="contact/thank-you-for-contacting-us"
datepicker="no"
error_handling="inline"
include_jquery="yes"
class="grey"
logged_out_member_id="1"
}
<fieldset>
<legend>Drop us a line</legend>
<ul>
<li><input type="text" name="{cf_contact_us_name}" id="{cf_contact_us_name}" placeholder="Your name"><span>*</span>
{if error:cf_contact_us_name}<span class="error">{error:cf_contact_us_name}</span>{/if}</li>
<li><input type="text" name="{cf_contact_us_telemail}" id="{cf_contact_us_telemail}" placeholder="Your email or telephone"><span>*</span>
{if error:cf_contact_us_telemail}<span class="error">{error:cf_contact_us_telemail}</span>{/if}</li>
<li><textarea name="{cf_contact_us_enquiry}" id="{cf_contact_us_enquiry}" placeholder="How can we help?"></textarea><span>*</span> {if error:cf_contact_us_enquiry}<span class="error">{error:cf_contact_us_enquiry}</span>{/if}</li>
<li><button class="button" type="submit">Send</button></li>
</ul>
</fieldset>
{/exp:safecracker}The strange thing is that this worked on a previous development server and now I have moved it to a production server it no longer works.
I also had an issue with Disallowed Key Characters but resolved that using the fix at https://support.ellislab.com/bugs/detail/16909.
Grateful for any help with this.