checklists(); $list = []; foreach ($checklists as $checklist) { $list[] = [ 'id' => $checklist->id, 'text' => $checklist->name, ]; } echo '
{[ "type": "select", "label": "'.tr('Checklist').'", "name": "checklist", "values": '.json_encode($list).', "required": 1 ]}
{[ "type": "select", "label": "'.tr('Utente').'", "name": "assigned_user", "ajax-source": "utenti", "required": 1 ]}
';