Jump to content

Phone number field and country code in custom module


Eduardo G.

Recommended Posts

Hi all, I have an issue using this simple code in a custom module (admin area)

<input type="text" name="phone1" >

As "Phone Numbers" is ticked in General Settings > Locations, WHMCS automatically adds a country code just before the field:

qeKVrDI.png

My field updtes automagically, but it doesn't use the default  country, and that's really annoying

I'm looking for a solution to:

a) Get my default country code selected

or

b) Bypass the automatic conversion of my field (can't change the name of the field)

Do you have any idea? Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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