Page 1 of 1

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

Posted: Wed May 07, 2014 2:02 am
by Tooba Atif

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.


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

Posted: Wed May 07, 2014 2:46 am
by Yurii Orishchuk

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.


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

Posted: Wed May 07, 2014 2:51 am
by Tooba Atif

It worked thanks alot :)


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

Posted: Wed May 07, 2014 3:25 am
by Tooba Atif

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


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

Posted: Wed May 07, 2014 3:38 am
by Yurii Orishchuk

Tooba.

Sorry but there is no a simple solution.

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

Regards.


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

Posted: Fri Aug 14, 2015 3:39 pm
by Joe Sharples

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


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

Posted: Thu Aug 20, 2015 6:40 pm
by Evgene Karachevtsev

Hello Joe,

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


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

Posted: Fri Aug 21, 2015 9:56 pm
by Joe Sharples

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