Redirection if the entered value exist

Hi guys !

I have an idea, but I don’t know how to do that and if it’s possible to do that with GF…

Imagine a list of codes key, like “A4512” or “B1548”… (don’t know yet where I should keep them, maybe in the form itself…)

If the value, entered by the visitor, exist in the list, it opens a new url with another form to create is account (the account is validate manually).

Do you know if it’s possible ? Any advice are welcome :wink:

Hi Sebastien,

There are various ways that the confirmation can be customized.

Do you have a small number of lookup values?
The confirmation settings with conditional logic would probably be okay.

Do you have dozen(s) of lookup values?
You might want to explore whether the gform_confirmation filter would be a better way to programatically compare the field value to the list of values.

If the list of values will change over time, storing them as entries in a separate form (or DB table) may be more manageable than directly within the PHP code.

Do you want to do it with no/lower code?
I answered a somewhat related community forum post where the request was about looking up previously submitted unique ID values. Check out the video in it, that Gravity Flow’s Form Connector with its’ Update Fields step type could let you take a similar approach with no/lower code to solve your task. In your case, perhaps you add a URL field to your “user submitting form” that the Update an Entry field mapping defines the content of as the workflow executes. Then the confirmation URL could be set to be based on that URL field (or a conditional logic fallback if the url field is blank).


Thanks Jamie !

I’ll look at that !

The gform_confirmation will probably a better solution… I’m waiting to know how many codes I have to manage :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.