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
Add class to checkbox
January 26, 2010
2:58 pm
elsbth
Guest
  • The browser used: FF 3.5
  • cforms version: latest
  • Your Wordpress version: 2.9

Hi

I want to add class to the li element for a couple of checkboxes, but there is no field for that. I can add class if the element is text only (no input), but not to my checkboxes (or other input fields).

Can I add class to these elements or is that functionality not implemented yet?

//Elisabeth

January 27, 2010
7:11 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

see your Styling menu tab!

January 27, 2010
9:59 am
elsbth
Guest

Your answer didn't help me much. I can give an example of what I want to do:

In my form I want to have two columns with input fields. I want to set <li class="left" > and <li class="right"> for the li that inlude some of the inputfields. Like I can set the class "language" <li class="textonly language"> where there is only text and no input.

If I have misunderstood your answer: exactly where under "Styling" can I add separate classes to my elements? The only thing I found was the css document, and that is not what I seek.

//Elisabeth

January 28, 2010
7:11 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

elsbth said:

Your answer didn't help me much. I can give an example of what I want to do:

you didn't look much.

under STYLING you have 2 buttons to 'Activate…' IDs of list and input field elements.

technically they're not classes, but they will suit your requirement to customize the fields

In my form I want to have two columns with input fields. I want to set <li class="left" > and <li class="right"> for the li that inlude some of the inputfields. Like I can set the class "language" <li class="textonly language"> where there is only text and no input.

If I have misunderstood your answer: exactly where under "Styling" can I add separate classes to my elements? The only thing I found was the css document, and that is not what I seek.

//Elisabeth

January 28, 2010
1:46 pm
elsbth
Guest

you didn't look much.

under STYLING you have 2 buttons to 'Activate…' IDs of list and input field elements.

technically they're not classes, but they will suit your requirement to customize the fields

I looked much and I activated the ID's. When I activate ID's I can style each li, input and label individually. My question was, and I clearly wasn't clear enough, if I could set class="personal_info" (set red background i.e.) on some input fields and class="business_info" (for black text) in some other fields in the same form.

If I add Text only (no input) there was a field to set the class for that text. I wanted to do the same thing if I added a selectlist or singleline.

The thing with the ID's are that if I, for some reason,had  forgot one input field on top of the form and already have set the style.css, I had to change the ID's in style.css because the ID's on the front change if I add or remove fields in the form. I wanted to be able to set classes to fields so I can change the form without having to change in style.css.

Have I explained my question enough?

July 5, 2012
10:44 pm
waldbach
Guest

i agree, class options for fields would be a great new feature. now i have to style about 19 ID's into the same CSS style. (I'd like to keep my ID's unique, as they should be!)

 

Love the plugin!!

January 23, 2013
6:59 pm
Randy.lee
Guest

being able to add "classes" to the li tag would be great! using id's is nice, but the id reefers to the li position and if the user change the position the applied css is lost.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 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: 3739

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5339

Posts: 18706

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

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

Administrators: Oliver (6400), Nicky (3)