Phone number input international formating didn't work

By: Emmanuel GADEK | Asked: 04/29/2025
ForumsCategory: Code HelpPhone number input international formating didn't work
Emmanuel GADEK asked 3 weeks ago

I actually work on a website on localhost.
I have several temporary links on it (href="#") .
I build a form and use a phone number input with international formating inside it.
When I click on the little flag at the input left, nothing happens. Is it due to temporary links presents on the page ?

1 Answers
Rob LeVineRob LeVine Staff answered 3 weeks ago

Clicking on a link and have nothing happen generally means one of two things: 1. It's redirecting you to the same place you already are OR 2. There's a javascript/jQuery error (which could be due to a plugin conflict). So you should open your browser's console (F12), refresh the page and look for errors in the console both before and after you click the flag. That being said, I have no idea what your temporary links and the input field have to do with each other.

Emmanuel GADEK replied 3 weeks ago

@Rob LeVine : I have no error on console log. Before and after clicking. Strangely, click on the little flag on the left of input drive me to the bottom of my page. I made some searchs on the web.
If I understand well the function use the 'intlTelInput.js' library, but I didn't find any reference to it on my source code ?
Do you have exemples of this field in use ?

Rob LeVineRob LeVine Staff replied 3 weeks ago

I don't have any example of using an international phone number usage. When you hover the mouse over the flag, what URL shows up in the location display at the bottom of your browser window?

Emmanuel GADEK replied 3 weeks ago

<p>@Rob LeVine : absolutely nothing, no link<br />....and strangely if I change the phone number prefix (ex : +33 or +49), the little flag update</p>

Rob LeVineRob LeVine Staff replied 3 weeks ago

I don't know what to tell you. I just created a simple form with an international phone field on it and both the flag and entering the number act as I would expect. I suggest going through the conflict troubleshooting and then, if you don't get your answer, file a support ticket with Strategy 11 - https://formidableforms.com/knowledgebase/what-plugins-are-known-to-cause-conflicts/#kb-how-to-find-a-conflict

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right