# Date Picker not working on mobile

**URL:** <https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743>\
**Category:** Get Help\
**Tags:** mobile, datepicker\
**Created:** [November 4, 2020, 6:47pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743 "2020-11-04T18:47:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5fa1a277e9f7d115](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@user5fa1a277e9f7d115](https://community.gravityforms.com/u/user5fa1a277e9f7d115)\
**Post date:** [November 4, 2020, 6:47pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/1 "2020-11-04T18:47:00Z")

</div>

The date picker is supposed to automatically put in today’s date. It works on desktop, but not mobile. Any suggestions? Here’s the form: [https://funhebrewschool.org/health/](https://funhebrewschool.org/health/)

This is the code I put in the functions.php file:

add\_filter( ‘gform\_field\_value\_current\_date’, ‘populate\_current\_date’ );  
function populate\_current\_date( $value ) {  
$local\_timestamp = GFCommon::get\_local\_timestamp( time() );  
return date\_i18n( ‘m/d/Y’, $local\_timestamp, true );  
}

I also tried it just using the merge tag without the code. Still doesn’t work on mobile.

Any ideas why it doesn’t work on mobile? Thank you!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 10:39pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/2 "2020-11-04T22:39:00Z")

</div>

Hi Jeanne. When I loaded the phone in Firefox on an iPhone I see the date pre-populated with 10/30/2020. How is that getting in there?

Screenshot: [https://d.pr/i/O5jtUg](https://d.pr/i/O5jtUg)

---

<div class="post-metadata">

**Author:** ![user5fa1a277e9f7d115](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@user5fa1a277e9f7d115](https://community.gravityforms.com/u/user5fa1a277e9f7d115)\
**Post date:** [November 4, 2020, 10:51pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/3 "2020-11-04T22:51:09Z")

</div>

It defaults to the last day the form was saved.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 10:53pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/4 "2020-11-04T22:53:15Z")

</div>

Is that intentional? I thought you were trying to populate it with code, but you are saying it is populated with the date the form was last saved?

That happened for me on Desktop and Mobile.

---

<div class="post-metadata">

**Author:** ![user5fa1a277e9f7d115](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@user5fa1a277e9f7d115](https://community.gravityforms.com/u/user5fa1a277e9f7d115)\
**Post date:** [November 4, 2020, 10:55pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/5 "2020-11-04T22:55:20Z")

</div>

No, I want it to be the date they fill out the form. It was working for me on desktop, but not on mobile. It’s not work for you on both?

I tried it with the merge tag and with code that I found on the forums.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 10:56pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/6 "2020-11-04T22:56:26Z")

</div>

It is adding that date on desktop and mobile. Gravity Forms does not do it on its own, so I am not sure how that is happening.

I recommend opening a support ticket for the issue:

> **[gform\_webapi\_get\_users\_settings\_page - Gravity Forms](https://docs.gravityforms.com/gform_webapi_get_users_settings_page/)**
>
> The "gform\_webapi\_get\_users\_settings\_page" filter controls the list of users available to be selected in the “Impersonate account” setting.

---

<div class="post-metadata">

**Author:** ![user5fa1a277e9f7d115](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@user5fa1a277e9f7d115](https://community.gravityforms.com/u/user5fa1a277e9f7d115)\
**Post date:** [November 4, 2020, 10:58pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/7 "2020-11-04T22:58:49Z")

</div>

okay, thanks!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 11:55pm UTC](https://community.gravityforms.com/t/date-picker-not-working-on-mobile/6743/8 "2020-11-04T23:55:36Z")

</div>

Closed on November 4, 2020, 11:55pm UTC


