Hi!
Can I print the results of a Checkbox Group within a <ul> HTML element?
How can I do it?
Thanks!
Can I print the results of a Checkbox Group within a <ul> HTML element?
How can I do it?
Thanks!
Hi entumas,
If you use a Handle Arrays action you will get a list of entries, setting the separator to <br /> will make this into a very basic list. If you want an HTML list you can use code like this:
Bob
If you use a Handle Arrays action you will get a list of entries, setting the separator to <br /> will make this into a very basic list. If you want an HTML list you can use code like this:
<?php
if ( !empty($form->data['checkbox_group_name']) && count($form->data['checkbox_group_name']) > 0 ) {
echo '<ul>';
foreach ( $form->data['checkbox_group_name'] as $v ) {
echo "<li>{$v}</li>";
}
echo '</ul>';
}
?>
Do not use the Handle Arrays action before this code is run.
Bob
Ups! I have already deleted!
Basically I copied yours and I replaced the field name (checkbox_group_name => modul_cursos_1).
This I have done in the body of e-mail
Basically I copied yours and I replaced the field name (checkbox_group_name => modul_cursos_1).
This I have done in the body of e-mail
This topic is locked and no more replies can be posted.