Displaying a hint in the field before user enters a value

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

Displaying a hint in the field before user enters a value

#1

Postby Hovik » Tue Mar 25, 2014 3:00 pm

How do you achieve the effect of the placeholder attribute of HTML <input> tag?

Answer:

Filed control -> Html element properties -> Editor Input ->

Then you have 2 options:
  • 1. Add the following to Custom Attributes:

Code: Select all

placeholder="Some text" 
  • 2. Add a default value to the field, then use client side javascript to clear the default value on click.
  • HTML event -> onclick

Code: Select all

if &#40;this.value == "field default value"&#41; &#123;
   this.value = "";
&#125;
0 x

Who is online

Users browsing this forum: No registered users and 5 guests