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.

Change Post Action URL

  1. aaronsold
    Member

    I am trying to get Gravity Forms to work on a subdomain but the post action URL points to a relative path so it will not submit. Where can I make it a full URL?

    Page Example:
    http://search.traditionalsellers.com/idx/13657/details.php?listingID=4073699&idxID=063

    <form method='post' enctype='multipart/form-data' target='gform_ajax_frame_1' id='gform_1' action='/#gf_1'> needs to be <form method='post' enctype='multipart/form-data' target='gform_ajax_frame_1' id='gform_1' action='http://www.traditionalsellers.com/#gf_1'>

    Posted 12 years ago on Friday April 6, 2012 | Permalink
  2. I noticed in firebug you have a couple JS errors - one on load with a share bar and another after trying to submit on WP's jQuery. Can you successfully submit the form from the form builder Preview function?

    You might also want to check for theme/plugin conflicts:
    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 12 years ago on Sunday April 8, 2012 | Permalink
  3. aaronsold
    Member

    I don't think the problem is a scripting issue. Because I am trying to use the form on the search.traditionalsellers.com subdomain, I need to rewrite the form action URL to the main domain. I got close by editing lines starting at 440 in form_display.php to the following:

    if($use_anchor !== false){
    $form_string .="";
    $action .= "http://www.traditionalsellers.com/#gf_$form_id";
    }
    $target = $ajax ? "target='http://www.traditionalsellers.com/gform_ajax_frame_{$form_id}'" : "";

    The problem is that the the action part of the form adds in an extra "/" right at the beginning:

    action='/http://www.traditionalsellers.com/#gf_1'

    Posted 11 years ago on Tuesday June 19, 2012 | Permalink
  4. aaronsold
    Member

    Any suggestions for me?

    Posted 11 years ago on Thursday June 21, 2012 | Permalink
  5. hettlage
    Member

    Does perhaps the gform_form_tag filter help with your problem?

    Posted 11 years ago on Monday July 2, 2012 | Permalink