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.

unexpected domain in form action statement

  1. Hi, I asked this question before but after reading through the source HTML I realise I did not ask it very well, so forgive me for repeating a question so I can frame it better.

    I have set up gravity forms in two places on the following site: brighterleadership.com

    One is a contact form using name, email from the advanced options and a text box entry from the standard fields. This form works correctly. I notice that the action in the form HTML is

    URL: http://www.brighterleadership.com/contact-us/

    <form method='post' enctype='multipart/form-data' target='gform_ajax_frame_1' id='gform_1' action='/contact-us/#gf_1'>
    <div class='gform_body'>

    However, I have a second form for user submitted posts using name, email and then title and body from the post fields:

    URL:http://www.brighterleadership.com/share-your-story/

    But the form code is doubled up

    <div id="gform_wrapper_1">
    <form id="gform_1" action="http://www.brighterpeople.org/stories-share-yours/#gf_1" enctype="multipart/form-data" method="post" target="gform_ajax_frame_1">
    <div class='gf_browser_chrome gform_wrapper' id='gform_wrapper_2' ><form method='post' enctype='multipart/form-data' target='gform_ajax_frame_2' id='gform_2' action='/share-your-story/#gf_2'>
    <div class='gform_body'>

    NOTE: there are two instances of the <form > tag. The second is correct. But another one is being added in front going to a different domain that is not connected to this site; wrong domain, wrong form ID. Where could this be coming from? It's like a ghost in the machine. I have trawled through the database and cannot see it.

    If someone could tell me where to look and what could cause a form, created on a fresh install of gravity forms, to magically prepend an irrelevant form statement in front of the correct code I would be very grateful....

    Thanks

    Phil

    Posted 12 years ago on Friday April 26, 2013 | Permalink
  2. Addendum, the result is that the form is being submitted to this incorrect domain, and not on itself. I expect to get the spinning wheel then see the form replaced by a text notification. Instead a new tab is opened leading to a dead end.

    Also, when I use preview mode in the forms section of dashboard, it works perfectly and the entry is made in both the form entries and also as a draft post.

    Posted 12 years ago on Friday April 26, 2013 | Permalink
  3. Richard Vav
    Administrator

    If a form works correctly when previewed from admin but doesn't when embedded on a page it would suggest a plugin or theme conflict. @castledesign experienced the same problem earlier today and it was solved by embedding the form in a new page, something either theme or plugin related that was unique to that one page was causing it.

    http://www.gravityhelp.com/forums/topic/error-on-submit-re-directs-to-another-site

    Posted 12 years ago on Monday April 29, 2013 | Permalink