Jump to content

Phone number template value change


Nyamkhand

Recommended Posts

Dear guys,

I am new to whmcs and am currently customizing my whmcs interfaces.

There is one thing I want to change in add contact page is the phone number field. I don't want it to be 88123456. Can I change it?   

It is not in language files. Where can I find this and modify it?

Any solution and answer would be great.

Thanks,

BR, Nyamkhand

PS: attached SS

88123456.PNG

Link to comment
Share on other sites

59 minutes ago, Nyamkhand said:

There is one thing I want to change in add contact page is the phone number field. I don't want it to be 88123456. Can I change it?   

technically, I think it's just a placeholder text generated via JavaScript.

1 hour ago, Nyamkhand said:

It is not in language files. Where can I find this and modify it?

the number layout is defined in /templates/six (or custom)/js/scripts.min.js - you could modify it, but your changes would be overwritten by a WHMCS update.

1 hour ago, Nyamkhand said:

Any solution and answer would be great.

the quick fix would be to disable that telephone feature in the admin area settings.

https://docs.whmcs.com/Phone_Numbers

zdxSbAE.png

that removes the dropdown dialling code option for each country and it's placeholder text.

I daresay a hook could be written to modify the placeholder - as WHMCS didn't write this code, it's well-documented here - but AFAIK nobody has published a hook here to modify the placeholder in this way.

Link to comment
Share on other sites

 

On 6/28/2019 at 6:58 PM, brian! said:

technically, I think it's just a placeholder text generated via JavaScript.

the number layout is defined in /templates/six (or custom)/js/scripts.min.js - you could modify it, but your changes would be overwritten by a WHMCS update.

the quick fix would be to disable that telephone feature in the admin area settings.

https://docs.whmcs.com/Phone_Numbers

zdxSbAE.png

that removes the dropdown dialling code option for each country and it's placeholder text.

I daresay a hook could be written to modify the placeholder - as WHMCS didn't write this code, it's well-documented here - but AFAIK nobody has published a hook here to modify the placeholder in this way.

Hi Brian,

I disabled the phone number, and it disappeared,

I think this is good for now.

Thank you very much.

BR, Nyamkhand

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.

×
×
  • 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