Post

1 follower Follow
0
Avatar

OntraForms: Conditional Redirects: Custom Relative Dates

Lorna Earnshaw

Hi,

 

It would be nice if we could specify conditional redirects based on relative dates. A use-case would be to direct different users to different "thank you" pages (TYP) based on their age.

 

For Example:

Let's say we only want users age 20+ to be able to reach  TYP-1 (The actual TYP),

and users age <20 to be directed to TYP-2 (a page saying "you must be 20+ yrs old to access this site")

 

The Condition is based on [DOB] (date of birth).

[DOB] is (Relative Date Range) -->

START: <NONE> or: <before | on or before | after | on or after> X <days | weeks | months | years> <ago | from now>

END: <NONE> or: <before | on or before | after | on or after> X <days | weeks | months | years> <ago | from now>

 

With X being a number. <a|b|c> are options.

 

Some basic validation would also be nice to verify that START and END ranges have some overlap (i.e. there exists at least one valid date that satisfies all specified conditions).

 

To continue with the example:

 

Redirect #1 (TYP-1): Condition: [DOB] is (Relative Date Range) -->

START: "on or before" 20 "years" "ago"

END: "NONE"

 

Redirect #2 (TYP-2): Condition: [DOB] is (Relative Date Range) -->

START: "after" 20 "years" "ago"

END: "NONE"

Please to leave a comment.