• Resolved dippli

    (@dippli)


    Hi,

    I was wondering if it is possible to grab and pass the URL from the CF7 form as a URL query parameter when you hit the send button? I need a URL to be passed for auto insert on a form on the page it redirects to. I basically need it to look like this:

    https://www.redirectedURL.com/?url=https://www.URLfromFORM.com

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kaspars

    (@kasparsd)

    Thanks for the suggestion, @dippli!

    This is not currently possible with the plugin but I have opened an issue for a future release:

    https://github.com/kasparsd/contact-form-7-extras/issues/23

    Thread Starter dippli

    (@dippli)

    Hi Kaspars,

    Thanks for looking into it and adding it to the list.

    I kinda solved it with the CF7 redirection plugin, but it can only parse either nothing or everything from the form so I had to do a 2 step form solution in order to only grab the URL. The first form grabs the customers details (name, email etc) and second form grabs the URL and sends it to us and also to auto fill the URL test field on this site https://gtmetrix.com. Not an optimal browsing experience, but it will have to do for now. You can see/test the form here https://webspeed.solutions/speed-test.

    Maybe something to consider, giving people a choice of which field(s) to use as the URL query parameter(s).

    Thanks for your help.

    Plugin Author Kaspars

    (@kasparsd)

    Thanks for the update @dippli!

    I was thinking of adding support for form field variables to the URL field where each instance of [field-name] would be replaced with the actual form entry value. What do you think?

    Thread Starter dippli

    (@dippli)

    Hi Kaspars,

    I think that might be a good idea as other people need to parse different values – I saw that is some other posts for other plugins. As long as there is freedom to choose what to and what not to parse then I think it will be very useful.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URL query parameter possible?’ is closed to new replies.