katycomputer Posted December 4, 2017 Report Share Posted December 4, 2017 By default /admin/clients/add/ lists "United States", is there a way to specify a default state? 99.99% of our clients are in Missouri, it seems like a lot of aggravation to scroll down the list of states. activa 1 Quote Link to comment Share on other sites More sharing options...
0 activa Posted December 4, 2017 Report Share Posted December 4, 2017 Nice idea . Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted December 4, 2017 Report Share Posted December 4, 2017 There is no way to have a state pre-selected without updating the source code to add in that option yourself. But to save yourself from some scrolling, you could select the field (or hit TAB until you get to it) and then begin typing on your keyboard to change the selected value, (e.g. begin typing out "Missouri"). Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
0 katycomputer Posted December 4, 2017 Author Report Share Posted December 4, 2017 I don't mind editing the source code - what file sets the default state? Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted December 4, 2017 Report Share Posted December 4, 2017 The browser's default option is the first item in the list, which for an alphabetical list of states in the US is Alabama. You can override it by specifying a state in the AdminClients controller: Open /app/controllers/admin_clients.php Find: $vars->language = $company_settings['language']; Add beneath that line: $vars->state = 'MO'; katycomputer and Blesta Addons 2 Quote Link to comment Share on other sites More sharing options...
0 katycomputer Posted December 4, 2017 Author Report Share Posted December 4, 2017 Very nice. Thank you. Quote Link to comment Share on other sites More sharing options...
Question
katycomputer
By default /admin/clients/add/ lists "United States", is there a way to specify a default state?
99.99% of our clients are in Missouri, it seems like a lot of aggravation to scroll down the list of states.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.