Page 1 of 1

CGBetterForms - Sample Checkbox Code

Posted: Fri May 10, 2019 2:59 pm
by Guy
Would someone be so kind as to provide sample code for checkboxes in CGBetterForms.

Thank you,

GCG

Re: CGBetterForms - Sample Checkbox Code

Posted: Fri May 10, 2019 3:30 pm
by calguy1000

Code: Select all

<input type="checkbox" name="something" value="1"/>\
Just tested, works fine here.

Re: CGBetterForms - Sample Checkbox Code

Posted: Fri May 10, 2019 3:55 pm
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.

Re: CGBetterForms - Sample Checkbox Code

Posted: Fri May 10, 2019 4:19 pm
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.