- This topic has 1 reply, 2 voices, and was last updated 8 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Input mask for phone numbers in SWPM form fields
Tagged: form fields, input mask
Hi
I am still using this great plugin with great success – thank you for providing it! I am using the latest WP version and Version 3.6.9 of SWPM.
What I would like to achieve is to restrict input of phone numbers in the add.php and admin-add.php files, to the format 9999 999 999 9999 (a typical number in France or Switzerland, with four-digit country code – like 0033 – followed by the area code and 10-digit phone number). I have tried downloading two different varieties of javascript that do this, and maybe I am putting them in the wrong place, but they never work.
In each case I added an Enqueue script statement to my functions.php file. It’s not just one js file – there is a whole package, and I can’t find any instructions where to place the additional files. (Or the main js file, for that matter.)
By the way, I am not using the Form Builder plugin.
Thanks for any suggestions …
SP
If you do not wish to use the Form Builder Addon, which already supports input field validation, you may open a Paid Support request; because adding custom features to the plugin is beyond the scope of the free support forum.