WPIntell

Source evidence

Force – Country Prefix

Country Code For Elementor Form Telephone Field · support · 2024-11-18T17:53:00+00:00

mixedsentiment
mediumseverity
0.78relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 25 rows with source links

24.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
crispalamaru resolved
At the moment, I get the country flag, but users have the tendency to add the code again. Is there any chance to set it in a prefilled way? If my country is Italy – to have the +39 added to the field => flag + prefix Hi @crispalamaru , Our plugin is designed to work this way: when a user starts entering their phone number, the country code of the selected country is automatically prefixed to the input. This ensures that the number, along with the country code, is correctly submitted to the database. Yes, it is possible to prefill the country code through custom code. However, please note that doing so may result in the phone number being submitted to the database without the country code included. Thank you. Hi! Thank you! Is there any chance to get from you the custom code or some instructions to add a custom code that adds the prefix once a flag is chosen & the user didn’t start to type yet? Hi @crispalamaru , Please review the attached files for instructions on adding custom code to the plugin: [Attachment1] [Attachment2] Note: Kindly ensure to minified the files after adding the code. Feel free to reach out if you have any questions or need further assistance. Thank you! Hi guys! This is amazing, it’s exactly how I want it to look, thank you! There is one problem though! At the moment, with this implementation, the country code is not sent in submissions, only the phone number after the code. Any suggestion on how to fix it? Hi @crispalamaru , As mentioned earlier, with the customized code applied, the country code will not be included in the submissions along with the phone number. If having the country code in the submissions is essential for your requirements, you can revert the code to its previous version to restore that functionality. Feel free to reach out if you have any questions or need further assistance. Thank you!

Comments

5 shown
gurpreetk1 2024-11-19T06:15:00+00:00

Hi @crispalamaru , Our plugin is designed to work this way: when a user starts entering their phone number, the country code of the selected country is automatically prefixed to the input. This ensures that the number, along with the country code, is correctly submitted to the database. Yes, it is possible to prefill the country code through custom code. However, please note that doing so may result in the phone number being submitted to the database without the country code included. Thank you.

crispalamaru 2024-11-19T10:04:00+00:00

Hi! Thank you! Is there any chance to get from you the custom code or some instructions to add a custom code that adds the prefix once a flag is chosen & the user didn’t start to type yet?

gurpreetk1 2024-11-20T07:14:00+00:00

Hi @crispalamaru , Please review the attached files for instructions on adding custom code to the plugin: [Attachment1] [Attachment2] Note: Kindly ensure to minified the files after adding the code. Feel free to reach out if you have any questions or need further assistance. Thank you!

crispalamaru 2024-11-22T14:21:00+00:00

Hi guys! This is amazing, it’s exactly how I want it to look, thank you! There is one problem though! At the moment, with this implementation, the country code is not sent in submissions, only the phone number after the code. Any suggestion on how to fix it?

gurpreetk1 2024-11-26T05:26:00+00:00

Hi @crispalamaru , As mentioned earlier, with the customized code applied, the country code will not be included in the submissions along with the phone number. If having the country code in the submissions is essential for your requirements, you can revert the code to its previous version to restore that functionality. Feel free to reach out if you have any questions or need further assistance. Thank you!