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!
<?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.