Checkbox with variable values

Hello Everyone :slight_smile:

I would like to add checkboxes to a form with variable values. For example, checkboxes for categories where they come from db or xml file. Those categories are variable.

How can I do that in the designer ?

Thank you

Regards

Tenalp

Iā€™ve tried to use this kind of script

function constructionLigneTab(i)
{
if (typeof(i)===ā€˜undefinedā€™) i = 1;

code = "";
code += record.tables.detail[i].fields.Item;
code += "";

return code;

}

The problem is with ā€œrecord.tables.detail[i].fields.Itemā€ where when I use ā€œiā€ Iā€™ve the error ā€œCannot read properly fields from undefinedā€. If I replace ā€œiā€ by a fixed value, it works.

Why Iā€™m not able to use a variable to get a value from a table ?

Thank you

Tenalp