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
Check Box - side by side
April 15, 2007
12:43 am
Dave
Guest

Is there a way to have column & rows of check boxes being displayed with the form?

Ex.

 

What is your favourite hobby?

x red    x blue

x green x red

 

 

April 15, 2007
8:49 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Every checkbox is considered a separate element, grouping is not supported per se in the way you described it above.

CSS wise it'd be possible to address check box blue & checkbox red and change the styling so they would float next to red and green to the left, however the form HTML code contains a <BR/> in between each new form element/label pair – and that <br/> between line 1 red – blue  would need to be removed.

If you're serious about this feature, you could

  1. give each <br> an ID,e.g. <br id="brX"/>
  2. change the CSS on a per field basis:
    • set display:none; for the breaks in-between checkboxes on the same line
    • set display:none; for checkbox labels in-between checkboxes on the same line
    • adjust the width of the style label.cformlabelafter so you can fit more checkboxes on one line

For item 1 above, I can give you the code pieces if you want to implement it.

April 15, 2007
10:30 pm
Dave
Guest

Oliver – that would be great – or optionally is it possible to have give a user the ability to select multiple options in a drop down selection box?

 

You have my email address already from this form I believe. 

April 15, 2007
11:09 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Yep, that's supported aleady, see the plugins' Help! page re: multi-select boxes. If that does the trick for you, great, if not I'm sure we'll get working the way I outlined it above.

Let me know either way ;) 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
20 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: 3744

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5345

Posts: 18714

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

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

Administrators: Oliver (6400), Nicky (3)