I'm using the International Telephone Input jQuery plugin with a WFFM (Web Form for Marketers) to have a field like this: enter image description here

To integrate the js plugin, a custom SingleLineText was created.

But the issue here is that, this field will take only the local phone number without the country code.

My question is, how to concatenate the country code with the local phone number and assign the value to the custom field when a user submits the form?

1 Answer 1


I did not use this plugin before but my guess you can bind onchange event and update the input or a use a hidden one. something like:

$("#phone").on("countrychange", function(e, countryData) { // do something with countryData });

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.