Page 1 of 1

PostPosted: Tue Jun 27, 2006 4:19 am
by cinocino
Some questions about checkbox groups:

- What's the function used to store the multiple value in the DB? (I'll use it to print into an e-mail the submitted values)

- In wich php template or file are they generated? (trying to fix the blank lines problem in Explorer)

thanks
Cino

PostPosted: Tue Jul 11, 2006 7:20 am
by cinocino
hi,

solved the strange "Internet explore blank lines before checkbox group" problem.

in file Dataface.php in HTML/QuickForm/Renderer/Dataface around line 108

changed this way

//$separator = ' ';
$separator = '';

hope is useful for someone

Cino

PostPosted: Tue Jul 11, 2006 10:32 am
by shannah
Thanks for this, cino.

I have applied this to the source for both 0.5.x and 0.6, so that any future releases will incorporate this.

PostPosted: Wed Oct 03, 2007 12:46 am
by jitu
hi steve
i solved my problem on export csv

let i want check box with multiple things
than wat to do

like eg

checkbox sign file-server,localserver,printer
checkbox sign file-server1,localserver1,printer1
checkbox sign file-server2,localserver2,printer2
checkbox sign file-server3,localserver3,printer3



ican get one option like
checkbox sign file-server
checkbox sign file-server1

in field.ini

i given
[service_port_range]
widget:type = checkbox
vocabulary = service_port_range
widget:label = "Access Map"


valuelists.ini
[service_port_range]
__sql__ = "select device_ip_address, device_name,name_of_service from device_details where type_of_device !=1 and type_of_device != 5"

check box appears with
device_name but wat about other parameter like name_of_service


thanks
Jitendra Dinanath Thakur
jitendra_forum2006@yahoo.co.in

PostPosted: Fri Oct 05, 2007 11:32 am
by shannah
Hi Jitendra,

What kind of field are you using for the service_port_range field? If you want to store multiple values it should be a varchar or a text field. If it is any other type of field, then it can only be either "on" or "off" rather than containing multiple values checked.

-Steve