• Resolved bogatajtadej

    (@bogatajtadej)


    Hi, is there a possibility of making a custom redirect URL after form submission, based on the user input in the fields?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Form Maker Support

    (@formmakersupport)

    Hi!

    Please take a look at this video tutorial.

    Go to Form Options > Action after Submissions > Custom Text and select the needed fields.

    Thanks, have a nice day!

    Hey,

    the option “Action after Submissions” you mentioned only works if there’s a predefined url to redirect a user.

    What about when I need to generate URL dynamically – based on form field values? Specifically: there’s a datepicker where user selects a date. After form submission, a user needs to be redirected to URL which contains that selected date.

    For instance: user selects “24th Jan 2018” and then needs to be redirected to ‘targetUrl?date=2018-24-01’

    For the ease of development, I used javascript and “before_send” function to fetch field values and create an URL. Which worked like a charm.

    But I need to create URL and redirect user AFTER form submission. I tried using “after_submit” method, but form fields are unavailable at this point.

    Please advise how can I fetch form values after form is submitted. Thank you!

    Update (in case anyone finds it useful): you can create URL in “before_send” function and store it in a hidden field on the form. Then you navigate to “Actions after submission -> Custom text” and create a link for a user to click on.

    But in my case, redirection must be automatic. Is there a way to “push” this created url to plugin and force it to redirect a user?

    Plugin Contributor Form Maker Support

    (@formmakersupport)

    Hi @blushp!

    Thanks for your suggestion.

    It is in our further plans. We will try to update the plugin as soon as possible.
    Thanks, have a nice day!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom redirect’ is closed to new replies.