2 users online. Create an account or sign in to join them.Users

Search

Is there anyway I can group checkboxes within a section?

Not easily. You could make sure they all sit together by ordering them consecutively and put them all in the Sidebar column.

Alternatively you could make a Select Box field with static values, one for each checkbox, and use Fazal’s Multiselect to Checkboxes extension which will render a Select Box (when “allow multiple” is selected) as a list of checkboxes in the backend.

Hmm, that looks interesting.

I may have to try that. Why clients insist on incredibly long forms I’ll never know.

Thanks Nick.

Correct me if I am wrong but this is only for the backend? I can still change the front-end code to behave like a checkbox group?

The Multiselect to Checkbox extension is for the backend only. You can render the field however you like on the frontend — a checkbox group and a select box with “allow multiple” provide identical functionality but with different UI controls.

You can use the Section Schemas extension to get all possible static values for a Select Box into your frontend XML.

Cool, been speaking to Fazal through Github and he seems to think that I can get the same effect by just including the script and css files. Seeing how it goes now.

Ok, slight tangent - but still in keeping with Checkbox Groups.

I have this code:

 <label><span>Construction</span><input type="checkbox" name="fields[application]" value="Construction" /></label>
  <label><span>Industrial</span><input type="checkbox" name="fields[application]" value="Industrial" /></label>
  <label><span>Anti-vibration</span><input type="checkbox" name="fields[application]" value="Anti-vibration" /></label>
  <label><span>Structural Isolation</span><input type="checkbox" name="fields[application]" value="Structural Isolation" /></label>

and I am using Rowan Lewis’s Emailtemplate extension, but it is not adding the multiples.

Try:

name="fields[application][]"

Thanks.

So basically that is returning the field application, and any value of that array?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details