Jump to content

Change First option in Province Drop Down


Recommended Posts

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

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.

GMovSv3.png

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="">&mdash;</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. :idea:

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated