Forums | Mahara Community

Developers /
loop pieforms checkbox elements

anonymous profile picture
Deleted user
Posts: 15

05 January 2015, 10:37 PM

How to do in pieforms

{foreach from=$myarr item=emailid}
<tr id="testform_input_email_container">

<input type="checkbox" class="checkbox1" id="testform_input_email" name="select_email[]" value="{$emailid}">{$emailid}

Now I'm doing this is tpl file

I have checkbox values in array

How to loop checkbox in pieforms.

Another doubt :

In Many mahara Pieforms,  checkbox dont have 'value' like title,type..

Where they set the values of checkboxes?

1 result