Add more options according to the chosen option, Countryselector

douglas gomes Posted in Component Development 2 weeks 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

Replies
German Arsalan Shah Replied 1 week ago

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