Skip to content

Commit

Permalink
add empty hidden input so that empty checkboxes get submitted
Browse files Browse the repository at this point in the history
fixes: keycloak#35352
Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit committed Dec 3, 2024
1 parent a4d70ad commit f7a080e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
<#assign classDiv=properties.kcInputClassRadio!>
<#assign classInput=properties.kcInputClassRadioInput!>
<#assign classLabel=properties.kcInputClassRadioLabel!>
<#else>
<#else>
<input type="hidden" id="${attribute.name}-empty" name="${attribute.name}" value=""/>
<#assign inputType='checkbox'>
<#assign classDiv=properties.kcInputClassCheckbox!>
<#assign classInput=properties.kcInputClassCheckboxInput!>
Expand Down

0 comments on commit f7a080e

Please sign in to comment.