radio/checkbox buttons in custom forms for datasets

Dear DHIS2 Users/Developers,

Has anyone used radio/checkbox buttons on custom forms for datasets? When I add them and save, the value is reset to “”.

my code: <input type="radio" name="q1" value="oneyes">
and the result: <input name="q1" type="radio" value="" autocomplete="off">

Hi @Joaquin_Urbano_Serra

Welcome to the community :tada: :slight_smile:

please try:

<input type="radio" name="q1" id="oneyes" value="oneyes">
<label for="oneyes">Oneyes</label><br>