I am implementing a Bootstrap 5 switch input that I need to be mandatory, meaning it should be checked by default and not uncheckable. The official documentation suggests combining the attributes checked
and disabled
. However, it seems like the Javascript FormData class does not recognize disabled inputs, even when they are checked. Is there a solution to this issue or do I need to find an alternative approach without using FormData?