Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

How can I display the title/text on date picker? like a place holder for text box.

Is there a way to do that? I want the user to select the date of birth and visit date so I am using 2 date pickers and want to show the relevant text on them.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How can I display the title/text on date picker? like a place holder for text box.

Hi Tooba.

Please try add this code on "page show" event for your page:

pre
code

//Where "mobiledatepicker_28" - is datepicker name.
Apperyio("mobiledatepicker_28").datapickerRoot.find("input").attr("placeholder", "Place holder text you need")

/code
/pre

Regards.

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

How can I display the title/text on date picker? like a place holder for text box.

Yurii,
What about the select box? What is the syntax for using a placeholder on select box?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How can I display the title/text on date picker? like a place holder for text box.

Tooba.

Sorry but there is no a simple solution.

I can only suggest you this one: http://stackoverflow.com/questions/13...

Regards.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How can I display the title/text on date picker? like a place holder for text box.

I tried this code but the default value was shown rather than the placeholder.
If I remove the default value on testing the app the placeholder appears.

Can I remove the default value within the builder? it's greyed out and not removable.
or do I have to use javascript to remove the default value?

Thanks

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I display the title/text on date picker? like a place holder for text box.

Hello Joe,

Sorry for the radio silence here. Could you please provide us with screenshots of what you get and the code you use?

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How can I display the title/text on date picker? like a place holder for text box.

no worries, I've actually changed the section of my app, and no longer need a solution for this. thank you

Return to “Issues”