Add more options according to the chosen option, Countryselector

douglas gomes Posted in Component Development 6 years 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
Indonesian Arsalan Shah Replied 6 years ago

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