PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Hardcoding - NAME of form not working.

  1. seangrove

    Have 1 form and parsed the url query to go to form 2 I have created a new page template just for the Gravity Forms. So as.

    $form_name = urldecode($form_name) ;

    gravity_form( "'" . $form_name . "'" false, false, false, '', true, 12);
    // This does not work but

    if ( $form_name = 'This Quote Form' ) {
    $form_name = 3 ; }

    // The form name is correct but does not work, however the form # does work.

    // Do I have to hard code every form and parse them into there numbers?

    Posted 11 years ago on Monday March 4, 2013 | Permalink
  2. Rather than using the PHP function call, can you try it as do_shortcode? Like this:

    <?php echo (do_shortcode("[gravityform id='$form_name' title='false' ajax='false' description='false' tabindex='12']")); ?>
    Posted 11 years ago on Tuesday March 5, 2013 | Permalink