XModPro

How can I use Birth Age - (year) to limit access to a page?

gnossosp gnossosp asked Mar 19, 2026
Active Mar 21 · Viewed 180 times
I have a class sign up form for a drivers license instruction site. They have various classes through the year (Class_Date) Students enter their DOB (Student_DOB) Classes are Limited to folks who are 15, or 16 or 17. Folks sign up and then are re directed to an external payment page. I am trying to programmatically limit participants who are not 15 16 or 17 from checkout. So far we have a checkbox on the sign up form that states CHECK HERE AND CONFIRM YOU ARE 15 16 OR 17 at the time of the class. So far that has gotten the point across. ...However.... Recently some folks have put in their correct birthdays (they are 29 and 30), checked the I'm 15,16 or 17 checkbox, and paid for classes. Client wishes to automatically restrict access to payment checkout page based on an age range. ------------------ Here's what I've Done So Far ----------------------- I have created a SP to enter the data and compare the Class_Date and Student_DOB to arrive at a StudentBirth_Age (years) and return the value in the AddSuccessTemplate. But what can I do with it from there? My original plan was to use the Case/Select but I forgot that Case/Select only works in template/templates. Is there some way to selectively use the StudentBirth_Age (years) in the AddSuccessTemplate to filter a link/access to the separate payment page? Any other strategy to accomplish this? Thanks

1 Answer

Loading answers...

XModPro