publicForm not submitting
I have a problem whereby the publicform is not submitting. It looks like something (my theme?) is adding extra characters in the javascript for nicedit...so i see things like this:
var active_file;</p> <p>jQuery(function() {
a bunch of p tags all over the place...is there a way to disable nicedit from publicForms and have simple textareas? Or does anyone have a hunch what is created them p tags in the javascript?
i use the latest pods (1.12) with the latest WP (3.2) with a Pagelines theme (Platform Pro)
any help is appreciated...
regards, raza
6 Answers
If you're including that within a page, it's likely WP that's taking over the format of the output. It looks like it's an issue with Exec-PHP and the WP the_content filters. Try running the code directly in a theme template instead, maybe setup a child theme?
Try setting your field to a "Code" field in the field editor. That should do it for that, but what I'm seeing from your actual issue is that you're embedding the form within a post or page. Is that right? If so, you may want to disable the WP Auto P for that specific use, or try customizing a child theme to pull the form in manually through a template.
Thanks for the recommendations. I changed the field to Code and I installed the PS Auto Disable formatting plugin that I found on wordpress.
Now, I get only one error in Firebug Console in ui/input_form.php
I see
else if (typeof(tinyMCE) == 'object' && "desc_tinymce" == classname[1]) {
where it should (obviously) be:
else if (typeof(tinyMCE) == 'object' && "desc_tinymce" == classname[1]) {
i am not sure what is doing this (the disable auto formatting script, i presume) but not sure how to fix... argh
no way to disable tinyMCE?
thanks again, raza
Not exactly sure how to fix, how are you outputting your form on this page?
Nothing particularly special in the code...this is the page:
http://www.wahakamezcal.com/recipe-submission/
this is the code... <h2>Cocktail Recipe Submission</h2> <h3>Submit your favorite cocktail (fields with * are required):</h3> <?php $fields = array('name', 'summary' => array('input_helper' => 'small_textarea'), 'ingredients' => array('comment' => 'Use the following format: Value Type Ingredient. For example, 3 oz. Wahaka Mezcal or 2 large limes'), 'instructions' => array('comment' => 'Be as descriptive as you can'), 'yield', 'duration', 'author'); $Record = new Pod('recipes'); echo $Record->publicForm($fields, 'Submit Recipe', 'http://www.wahakamezcal.com/recipesub/'); ?>
but, as you mention, the code in the page and I use Exec-PHP...and some other plugins as well as the PlatformPro theme ...so the WP configuration is a bit complex..
regards, raza
ok...will try that...it's just that the pagelines themes are a bit gnarly...not sure yet how to create a child theme with them...but i'll figure it out eventually...thanks, raza


