It's very unusual to have a value in the brackets of a checkbox (I've never seen it done). Are you sure you don't mean one of these?
<input type="checkbox" name="group[[+name]]-[[+id]][]" value="1">
<input type="checkbox" name="group[[+name]]-[[+id]]" value="1">
Try:
<input type="checkbox" name="group[ [[+name]]-[[+id]] ]" value="1">
Or
<input type="checkbox" name="group['[[+name]]-[[+id]]']" value="1">
Fair enough (I was thinking of radio options, where that would make less sense).
Can you be more specific about what you mean by "This will fail" ?
The placeholders should be replaced by the time the page is rendered, so the browser would never see the triple brackets. Are you saying that MODX is failing to parse the tag correctly? b03tz's suggestion might help with that.
-
☆ A M B ☆
- 24,524 Posts
It doesn't surprise me that this wouldn't work, MODX will try to figure out what kind of MODX tag [[[ is and of course fail, since there is no such tag. I think that two brackets without a following tag identifier is taken to mean "snippet", so what you have there is a snippet with a very strange name which of course doesn't exist so nothing is output. The inner full placeholder will be processed, so you'll end up with something like "group-1]"
-
☆ A M B ☆
- 24,524 Posts
Sorry, no idea. Unless you install pdoTools and enable and use the Fenom parser syntax instead of MODX tags.