multiple check boxes

41 views
Skip to first unread message

Dennis Krahn

unread,
Aug 11, 2013, 1:38:34 PM8/11/13
to cenos...@googlegroups.com
I have three check boxes, I only want one checkbox to be able to be checked at one time. if the user checks one of the other check boxes I want that check box to become checked and the other check boxes to remain/become unchecked. So only one check mark can be in this group of 3 check boxes at one time.

could you provide a sample script that would achieve this?

Thank you.

by the way, I am new to your program and I've already built some great forms I am also new to Java. But I wanted to let you know that this is a terrific program thank you.

Yang Lu

unread,
Aug 12, 2013, 1:19:10 AM8/12/13
to cenos...@googlegroups.com
Hi Dennis,

I am glad you liked CenoPDF.

From your descriptions, I think you might want to use Radio buttons. You can
add three radio buttons. Make sure they all have the same name but with
different export values. They will grouped together and only one button can
be selected.

Let me know if you need more help.

Thanks,
Yang
--
You received this message because you are subscribed to the Google Groups
"CenoPDF Support Group" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to cenosupport...@googlegroups.com.
To post to this group, send email to cenos...@googlegroups.com.
Visit this group at http://groups.google.com/group/cenosupport.
For more options, visit https://groups.google.com/groups/opt_out.




Dennis Krahn

unread,
Aug 16, 2013, 5:23:26 PM8/16/13
to cenos...@googlegroups.com
We will try that and let you know. Thanks.

Lakshminarayan K V

unread,
Aug 28, 2013, 10:28:02 PM8/28/13
to cenos...@googlegroups.com
Hi Dennis
 
You can try the below javascript sample
 
If you have three check boxes and the user can check only one box at a time and the other two should be unchecked, this can be done by javascript in Mouse Up trigger under Actions tab.
 
if(this.getField("checkbox1").isBoxChecked(0))
{
 this.getField("checkbox2").checkThisBox(0, false);
this.getField("checkbox3").checkThisBox(0,false);
 }
 
The above script has to be added in the first check box
 
For second checkbox
 
if(this.getField("checkbox2").isBoxChecked(0))
{
this.getField("checkbox1").checkThisBox(0, false);
this.getField("checkbox3").checkThisBox(0,false);
}
 
For third checkbox
 
if(this.getField("checkbox3").isBoxChecked(0))
{
this.getField("checkbox1").checkThisBox(0, false);
this.getField("checkbox2").checkThisBox(0,false);
}
 
 
Please try.  I hope this helps
 
Thanks
 
Laks
Reply all
Reply to author
Forward
0 new messages