I want to hide my form when I click on the submit button. My code is as follows:
you need to use display = none
display = none
value hidden is connected with attributet called visibility
visibility
so your code should look like this