cybersalt Posted November 15, 2017 Share Posted November 15, 2017 On the WHMCS registration page, if the US is selected the state field shows the word "state" before someone makes a selection. However, if the country selected is Canada the province field shows a single, lonely "-" and because the icon next to the field is not descript, people don't always know what to put in there. Where can I go and change this "-" to be the word "Province" ? Thanks! Link to comment Share on other sites More sharing options...
brian! Posted November 15, 2017 Share Posted November 15, 2017 8 hours ago, cybersalt said: On the WHMCS registration page, if the US is selected the state field shows the word "state" before someone makes a selection. using which version of WHMCS? in v7.4.1, it will show "State" as a placeholder for countries that do not have preconfigured state options, and for those countries that do (UK, US, Canada etc), it will show "-" as the first item of the dropdown. 8 hours ago, cybersalt said: However, if the country selected is Canada the province field shows a single, lonely "-" and because the icon next to the field is not descript, people don't always know what to put in there. Where can I go and change this "-" to be the word "Province" ? you could edit /assets/js/StatesDropdown.js and change — in... .append('<select name="state" class="' + jQuery("#stateinput").attr("class") + addClass + '" id="stateselect"' + statesTab + disabled + '><option value="">—</option>' + stateops + '</select>'); but I doubt you could easily use a language string in there, so you may have to hardcode a generic English string - though while "Province" might make sense in Canada, it wouldn't in the UK or possibly US... which might explain why WHMCS just used "-" to avoid the issue. btw - if you modify the above file, it will likely be overwritten during a WHMCS update - so keep a note of any changes you make. Link to comment Share on other sites More sharing options...
Recommended Posts