[SOLVED] LISE - checkbox group - selected checkbox text
Posted: Wed Apr 03, 2019 3:51 pm
Hi all,
Maybe I'm overlooking something but how can I get the text of a selected checkbox option in a checkbox group to show up in the template?
I'm using multiple checkbox groups where some checkboxes have the same text so I need to enter unique values to be able to differentiate.
ex:
Checkbox group 1
Search=SearchGroup1
...
Checbox group 2
Search=SearchGroup2
...
Code below would return the values SearchGroup1 & SearchGroup2
But I can't find how to return the text "Search"
Some extracts from the module with debugging turned on:
- The checkbox options list does still show both text and value:
- The selected checkbox shows only the value of the checkbox option:
I'm thinking about a messy workaround but hope I'm just missing some insight
ps: I'm working in the "Search Template" to generate the filter buttons.
Greetings,
Manuel
Maybe I'm overlooking something but how can I get the text of a selected checkbox option in a checkbox group to show up in the template?
I'm using multiple checkbox groups where some checkboxes have the same text so I need to enter unique values to be able to differentiate.
ex:
Checkbox group 1
Search=SearchGroup1
...
Checbox group 2
Search=SearchGroup2
...
Code below would return the values SearchGroup1 & SearchGroup2
Code: Select all
{foreach from=$fielddef->values item='value'}
{$value}
{/foreach}
Some extracts from the module with debugging turned on:
- The checkbox options list does still show both text and value:
Code: Select all
[options] => Support=OthSup
Families=OthFam
Code: Select all
[values] => Array
(
[0] => OthSup
)
ps: I'm working in the "Search Template" to generate the filter buttons.
Greetings,
Manuel