Apr 17th, 2013, 6:56 PM
I'm having the same problems with form fields not repopulating when using the API. My server side validation works and will return an error if a required field is left blank. The CAPTCHA will show and error if an incorrect word is entered, but all the form fields return blank. If anyone knows how to correct this, I'd appreciate the help.
Julie
Julie
(Jan 24th, 2013, 8:59 AM)acannan Wrote: Update:
Well, after 24 hours of no response, I rebuilt the form using the API. You can find my rebuild at http://certus.worldpath.net/jobformRE.php. I took it out of the tabs and changed the doc type and a few other things. The form functions in every way but the repopulating of fields. I don't know if this is a positive thing or not, but I've managed to make the php code that was printing in the text field disappear. I've got some JS validation and the Captcha works, in that it is preventing the delivery of incorrect Captcha entries, but when it fails, the fields still don't repopulate. Within the CAPTCHA an error message displays. I've tried all of the combinations of code I can conjure.
value="<?php htmlspecialchars(@$fields["element_1"])?>"/> failed to repopulate
value="<?php htmlspecialchars($fields["element_1"])?>"/> failed to repopulate
value="<?php @$fields["element_1"]?>"/> failed to repopulate
value="<?php $fields["element_1"]?>"/> failed to repopulate
What am I doing wrong?