submit button not working when do_shortcode('[gravityform id="'.$form_id.'"
-
Hi – So when I use the do_shortcode to generate the form and post id dynamically, the submit button for the form doesn’t work. As in, click it, nothing happens.
If i just put the shortcode in the editor field of a post and put in the form ID and post ID, it works as should.
Code in template looks like this:
add_action('genesis_loop','edit_form'); function edit_form() { echo do_shortcode( '[gravityform id="7" update="264"]' ); }
Suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘submit button not working when do_shortcode('[gravityform id="'.$form_id.'"’ is closed to new replies.