Page 1 of 1

Empty Message for Textbox

Posted: Wed Dec 04, 2013 12:06 pm
by Alex Lee Choong Young

Hi Guys,

Is there a way to create a textbox with empty message inside? eg. Key in your email here.

The only way I can think of so far is to give the textbox an onkeydown event then put in the action to clear the textbox.

Is this a common practice? Are there any alternatives to do this? :)

Thanks in advance !


Empty Message for Textbox

Posted: Wed Dec 04, 2013 12:48 pm
by Maryna Brodina

Hello! Sorry, not sure I understand the question. Could you clarify please? What do you want to have as result?


Empty Message for Textbox

Posted: Wed Dec 04, 2013 2:16 pm
by Alex Lee Choong Young

Good Day Maryna,

Of course! Please refer to image below on what I trying to achieve. Basically it's like the search box control of Appery. I would like to apply the same feature on normal textbox.

Image


Empty Message for Textbox

Posted: Wed Dec 04, 2013 2:35 pm
by Maryna Brodina

If I understanf correctly you want to add placeholder for textbox. Delete text in Textbox and in More properties add placeholder attribute and value you need.


Empty Message for Textbox

Posted: Fri Dec 06, 2013 2:57 pm
by Alex Lee Choong Young

Thanks Maryna ! Just saw that inside documentation