# Configuring Date Picker for Age Verification

**URL:** <https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408>\
**Category:** Ask for Help\
**Created:** [September 21, 2023, 4:05pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408 "2023-09-21T16:05:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 4:05pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/1 "2023-09-21T16:05:03Z")

</div>

Hi All,

Is it possible to configure the date picker to only allow selecting dates in the past? I want to restrict users from choosing a date that doesn’t indicate they are at least 16 years old. So, when someone attempts to select a date, it should show a date that is 16 years or more in the past. For example, if someone is using the app today (09/11/2023), the date picker should display 09/11/2007 or earlier, and no dates beyond that should be available for selection

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 21, 2023, 4:07pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/2 "2023-09-21T16:07:39Z")

</div>

No, you can’t do that natively.  
But if you’re willing to use a Custom Form, you can create your own validation rule to prevent the user submitting if they enter a date that’s outside an acceptable range.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 21, 2023, 4:14pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/3 "2023-09-21T16:14:46Z")

</div>

Is this not still an option???

 ![Screenshot_20230921-111405](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/86f0089f755ab10b09bcb8e4b85f1f1ad655c1ca.jpeg)

Or are you looking for a more custom range?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 21, 2023, 4:18pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/4 "2023-09-21T16:18:41Z")

</div>

> [@Jeff\_Hager](#):
>
> Or are you looking for a more custom range?

yeah…

They want a date that is at least 16 years in the past.

---

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 4:22pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/5 "2023-09-21T16:22:58Z")

</div>

Hi @Darren_Murphy, Thank you for your prompt response. I appreciate your insights. I find myself facing a bit of a challenge here. It seems that what I’m working on doesn’t align with using a Custom Form, at least based on my attempts.

If I’m understanding correctly, a Custom Form typically relies on the User Profile, which, in turn, is linked to the User Table, correct?

Now, the application I’m developing won’t involve user logins, rendering the User Profile irrelevant in this context.

Unless I’m missing something or have misunderstood this, I would greatly appreciate your expert input.

I will add that I am using a form screen instead.

Thank you."

---

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 4:23pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/6 "2023-09-21T16:23:59Z")

</div>

Yes a date 16 years in the pass is correct.

---

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 4:24pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/7 "2023-09-21T16:24:47Z")

</div>

I saw that but it is not what I am looking for. Thanks.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 21, 2023, 4:31pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/8 "2023-09-21T16:31:47Z")

</div>

Custom forms do not require the user to be signed in and they don’t have to use the user profile table. Any table can be used for a custom form. In fact they work better when users aren’t signed in because it doesn’t count as many updates as a custom form would when you are signed in.

---

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 4:53pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/9 "2023-09-21T16:53:03Z")

</div>

@Jeff_Hager, I seem to be encountering an issue, and I suspect I might be overlooking something. I have a button block, and I’ve configured it to show the detail screen. However, when I navigate to the detail screen, I see a list of tables including the User Profile table and another table called ‘Customer,’ but the table I want the file to update is not visible.

I’ve attached some screenshots for your reference. Could you please take a look and let me know if you spot what I might be doing wrong? Your insights would be greatly appreciated. Thanks for your help.  
 ![Screenshot 2023-09-21 at 12.45.30 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/f/0f024a4d6f73be014c5a3b7576402ede8fe17787.png)

 ![Screenshot 2023-09-21 at 12.47.53 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9fed067bab70d3848a181ca58feb830e990b1d44.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 21, 2023, 5:08pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/10 "2023-09-21T17:08:48Z")

</div>

If you want a custom form to use a specific table, you need to set that table as the source of that screen. Seems that your screen is using the Customer table as it’s source instead. You need to change your button action to show the detail screen for your custom form table.

---

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 6:30pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/11 "2023-09-21T18:30:05Z")

</div>

That’s my dilemma, I do not see an option to change the source anywhere. Can you send me a quick screenshot on how you accomplish this?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 21, 2023, 7:34pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/12 "2023-09-21T19:34:57Z")

</div>

Ok. I had to open up the builder to double check and you are correct.

When you use ‘Show Detail Screen’, your only options are the user profile or the current table.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/a/ba8228a3a35f8cdd1c3922d2ef3a33dbb425f333.png)

This leaves you with two options:

- The easy option is to instead use ‘Show New Screen’, which will give you access to all tables.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/9/d90d45b6c8110120eca005f3f77fe4ec911088c9.png)  
This will work perfectly fine if you only plan to open that custom form from one place.

- The more complicated (but better longterm) solution is to first create a single relation → whole row in the customer table that retrieves the first row from your custom form table. This is essentially the same as a single row relation.  

The only reason I would recommend the second method is if you want to reuse that same custom form elsewhere in your app without making multiple copies. Also, there is less of a risk of losing it. Detail screens are always linked to their source table forever, whereas New screens are independent and only linked to their specific instance instead of being linked to the table. If you lose a New screen it’s gone. If you want to reuse a New screen somewhere else, you can’t. Detail screens are safer for the long term, especially for custom forms. The design is forever linked to the table, so it’s a lot easier to reuse elsewhere in the same app.

Hope that all makes sense. Get’s a little into the fundamental underworking of Glide.

---

<div class="post-metadata">

**Author:** ![Monj](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monj/32/62349_2.png) [@Monj](https://community.glideapps.com/u/Monj)\
**Post date:** [September 21, 2023, 8:08pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/13 "2023-09-21T20:08:26Z")

</div>

@Jeff_Hager, This makes perfect sense and helps very well. Thank you for being very detailed.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 28, 2023, 8:09pm UTC](https://community.glideapps.com/t/configuring-date-picker-for-age-verification/66408/14 "2023-09-28T20:09:18Z")

</div>

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