cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Clear Default Text on clicking inside of input field
December 18, 2010
12:48 am
Adam Bell
Guest

I'm creating a small form for a client. Not a lot of space so thanks to cForms default text feature, I placed the label using the Default Text feature for each input field inside of cForms but I'm wondering if I can make it clear the text field once I give it focus. Does cForms offer that feature standard? Or must I add an external .js file?

February 22, 2011
1:46 pm
Werner
Guest

Adam Bell said:

I'm creating a small form for a client. Not a lot of space so thanks to cForms default text feature, I placed the label using the Default Text feature for each input field inside of cForms but I'm wondering if I can make it clear the text field once I give it focus. Does cForms offer that feature standard? Or must I add an external .js file?

If you still need a solution, this is how you will be able to do it.

 

When creating a field like: Name|Name* 

 

The first value is the label, the second is the default value of the textbox. Leaving out the first value like so: |Name*

will only display the default value, the | being the separator.

 

Unchecking the required & email checkboxes will remove any warning labels, minimising space.

 

Hope this helps

 


Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3740

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5340

Posts: 18707

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)