cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Dynamically Add Data Source to multi-select check box

Hi Team,

I have created custom list. I want to bind multi-select check box data source dynamically using jquery. I there any approach to bind. Using below approach, but it's not working.

if (arrReportNames.length > 0)
{
var voptions = '';
for (i = 0; i < arrReportNames.length; i++)
{
var vreportname = arrReportNames;
console.log(vreportname);

voptions += '<input type="checkbox" name="CheckBox'+ i +'" value="' + vreportname + '"/>' + vreportname + '<br/>';
}
$('#'+ddlReportName).append(voptions);
}

Labels: (1)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: Dynamically Add Data Source to multi-select check box

this is not supported by sharepoint/ASP since it breaks view-state mechanism.

you could find some workaround described here, but it's quite complex

 

0 Kudos
Accept as Solution Reply