I have a dropdown field in my form and when I hit submit the form goes through validation and if an error happens, return all the value. This work expect for my dropdown meu
Remove the set_value('gender')
set_value('gender')
As in:
As Trung was mentioning you can pass an array as the 3rd parameter for multiple selections.