Add more options according to the chosen option, Countryselector

douglas gomes Posted in Component Development 3 months ago

wanted to add the option to select the state according to the country of the user, however, the command "$ params ['user'] -> country" is not working
enter image description here

summary: if the user selects the country "brazil" it displays a new field that would display the states of brazil

German Arsalan Shah Replied 3 months ago

Are you doing this on profile edit page? However this need a JS with ajax request that fetch a state wrt country.