Results 1 to 6 of 6

Thread: Not redirecting after form submission in webtolead capture

  1. #1
    southwestcrm is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    171

    Default Not redirecting after form submission in webtolead capture

    SugarOs 4.5.1.d
    I have created a lead form and added it to my site.
    when it is filled in and submitted the details are entered into the LEADS table and linked to the correct CAMPAIGN.
    All OK so far...

    However the filler inner is redirected to a page that says "PAGE CANNOT BE DISPLAYED becuase of an invalid method (HTTP verb) was used to attemp access"
    The address bar contains the correct url (if I hit enter key the website is accessed ok)

    The code performing the redirect is:
    <INPUT id="redirect_url" type="hidden" value="http://www.google.com" name="redirect_url">

    any ideas anyone?

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Not redirecting after form submission in webtolead capture

    This is because the page you made as your redirect page is an HTML page and as such is unable to process the POST data that SugarCRM is sending it.

    Attached is a webtolead.php file that does not send any data to the final page.

    Another option would be to make your redirect page a PHP page which by default would work even if you did not do anything with the POSTed data.
    Attached Files Attached Files
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    southwestcrm is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    171

    Default Re: Not redirecting after form submission in webtolead capture

    Thanks Ken, I will change the html page to be a php page instead. If I replace the webtolead.php with your one I presume I would lose some functionality which I may want in the future (other forms)?? Maybe you can point me to a place which describes when I might need Sugar to send data to the redirected page?

    Also - if i replace the default webtolead.php file, upgrades would require manual checking of this file each time?

    Thanks for your input

  4. #4
    wmflan is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Upstate NY, USA
    Posts
    17

    Default Re: Not redirecting after form submission in webtolead capture

    kbrill,

    Thanks for this solution; I was having the same problem and making the thank you page php solved it!

    WmF

  5. #5
    monkeyfish is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    29

    Default Re: Not redirecting after form submission in webtolead capture

    I am looking to pass data to the php page and to redirect it to another page after the data is sent to the php page. How can I do this?

  6. #6
    monkeyfish is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    29

    Default Re: Not redirecting after form submission in webtolead capture

    Kbrill,

    Thanks, that new file works good. I was wondering why the regular one was working for top level domains but not specific URL's. Yours works for specific pages such as .pdf's.

    The only downside I see so far is that the contact page is still in place afterwards. I'm trying to figure out a way so that it takes them back to the main website and loads the .pdf file. Do you know how to do this?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2009-10-23, 02:41 PM
  2. Lead Capture form send to Accounts or Contacts
    By creativeone in forum Help
    Replies: 1
    Last Post: 2007-04-25, 11:18 PM
  3. Guide for website lead Capture form
    By vkr2005 in forum Help
    Replies: 3
    Last Post: 2006-12-01, 09:00 PM
  4. Replies: 1
    Last Post: 2006-06-13, 12:39 PM
  5. Linking Sugar CRM to online form capture
    By breathe_easily in forum General Discussion
    Replies: 2
    Last Post: 2006-03-14, 10:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •