Age Limit Access

Hello Everyone,

In my database it includes the birthday, I need to create a validation or filter wherein the user needs to be 18yo and above in order to be able to access or register on the app.

Thanks much everyone for always being very helpful.

Mark

Hi Mark,

First you need to calculate the age from the DOB input like I’ve replied into your past created topic and save that value. : Getting the Age with Birthday - #2 by Dilon

Then you can use that age number property as the condition in a link action or in a visibility condition.

Let me know if your setup is different!

Thank you and have a great day!

Hello Dilon,

Thank you very much for the kind response, and yes I have done that part already. I was able to follow the steps you sent the last time and I was able to retrieve the users age.

And now i need some help in setting a condition, 18yo and above are the only ones allowed to register on the app.

Thanks much,

Mark

Hi Mark,

You’re very welcome!

So you need to add the validation during the signup process to not be able to signup or after that when accessing the home screen like showing up a message popup to not able to go forward? What would be your screens flow?

Thank you and have a great day!

I am thinking of during the signup process, and since the birthday is already in the database. If the app user lied about their birthday and does not match, it will prompt a warning that the birthday do not match or does not qualify them to sign up since they are under age.

Hi @App_Up2,

So if I understand your process, signup using email; password; name and birthday (and any other properties) > app calculates the age > move forward if the age is greater than or equal to 18 > link back to signup page while deleting the user record and logging the user out if age is less than 18. Correct?

Thank you and have a great day!

Hello,

Here’s my signup process.

1.) Enter Full-Name
2.) Enter Last-Name
3.) Enter Unique ID (assigned number entered in the system already)

  • If the entered ID match with what is in the system, it will continue or finish the registration. While if It’s wrong, or missing just one digit it will prompt a warnng modal.

However, even if the ID entered is correct but the age is 18yo below (based from their birthday that is already in the system). It will not continue the registration and it will prompt that due to their age they are not allowed to register.

And once again thank you very much for the kindness and for helping.

Mark

@App_Up2 sorry for my question but why would you want to add users with age below 18 at all?
You will not allow them to register in any case; based on your description there is no path for them to use your app:

  • you add a user ID and DOB, this user is below 18
  • you motivate them to sign up
  • they’re below 18 → they are not allowed to use the app.

Best,
Victor.

Hello Victor,

The app is not open for everyone. We will be utilizing it for ur Insurance company, in insurance, among many other rules and regulations, one of them is the equal rights. Which is to download the app, but they have to be on the right age to utilize the app. So the users are pre-registered already and only 18yo above can use and register into the app (for now) and wait until they turn to 18yo and they can register.

@App_Up2 then the easiest way would be to have a “registration allowed” date in your pre-registrations collection, and compare the current date with it for a new user.

Just in case: all dates comparison are done using the client device. So if I change the date on my client device to some future date, I can easily bypass Adalo’s date validation filter.

Best,
Victor.

1 Like

Thanks much Victor, I really appreciate it. All is good now, I got it figured out. I just created a loading page with conditions if 17 or less, it will prompt a warning.

On the other note, is there a way I can pre-register our users with existing policy/insurance ID? in order for the user to register they would have to enter the correct ID with correct name? Is there a way I can do that in the registration?

Thanks much

Mark

Hi Mark @App_Up2,

This is also possible. For example, you can create users in bulk, with randomised passwords, and also have a property “isProtoUser”. Then you can create a registration flow, where:

  • user enters their “external credentials” - say, surname and policy ID
  • you find this user using a list w/filter (single-list-item button), and proceed to the next screen
  • then you allow user to create a password and update a current user with this password
  • and then you log in (automatically or manually) this user with their new fresh password, don’t forget to mark this user “isProtoUser” to False at the end of the flow.

There are some videos which I’ve made (about customised password reset + admin/user routing) - the flow will be very similar. Keep in mind you need to route “proto” user to the flow in case they haven’t finished the onboarding. Also there is a video by Adalo from 2020, how to use company code - this also could be helpful.

But in general, the choice of a certain onboarding flow depends on a lot of factors and risks, so I can not say that my advise is the best possible for your particular case. More detailed evaluation could be done on a 1:1 consulting session, if you wish.

Best,
Victor.