Hi, I love this plugin and it does exactly what I am after but I am having a problem with the checkboxes. Whether I set the initial value to Yes or No, if I tick a box, it is always reported as No. If I don't tick a box it is reported as "Not checked". How can I get it to report Yes if it is ticked? Also, I have edited the label of a field which I have created myself but the old label is still being displayed even if I detach and then reattach the field to the form. Any ideas? Thanks
http://wordpress.org/extend/plugins/custom-contact-forms/
Realised what I was doing wrong with the checkboxes. Still not getting the updated field label but not too bothered so closing this.
pool-stage
Member
Posted 1 year ago #
Hi univit.
I have the same problem with the checkboxes. Can you explain how you solved it?
Thanks for your help.
Pool-Stage
Hi pool-stage, can't remember exactly what the fix was (think I was setting the value= incorrectly) but the following syntax worked for me:
<div><input id="Cough-1298376811" class=" ccf-tooltip-field" title="Tick here if the person has a cough" name="Has a Cough" type="checkbox" value="Yes" /><label class="checkbox" for="Cough"> A cough</label></div>
Hope that helps!
pool-stage
Member
Posted 1 year ago #
Hi univit,
thanks for your help. In the meantime I found the problem. It was the initial value.
Greetings from Stuttgart,
pool-stage