CGBetterForms - Sample Checkbox Code

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Guy
Forum Members
Forum Members
Posts: 29
Joined: Wed Jan 12, 2011 9:15 pm

CGBetterForms - Sample Checkbox Code

Post by Guy »

Would someone be so kind as to provide sample code for checkboxes in CGBetterForms.

Thank you,

GCG
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: CGBetterForms - Sample Checkbox Code

Post by calguy1000 »

Code: Select all

<input type="checkbox" name="something" value="1"/>\
Just tested, works fine here.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Guy
Forum Members
Forum Members
Posts: 29
Joined: Wed Jan 12, 2011 9:15 pm

Re: CGBetterForms - Sample Checkbox Code

Post by Guy »

Thank you. I thought it would be more than the usual checkbox code, since the code for radio buttons in CGBetterForms is more complex than the usual HTML radio code.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: CGBetterForms - Sample Checkbox Code

Post by calguy1000 »

The code for a radio button is exactly the same.
UNLESS you want to take advantage of other convenient like 'setting' the selected flag of a radio button group from smarty variables etc.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”