Home › Forums › Jquery Validation for Contact Form 7 › Letters Only
- This topic has 14 replies, 2 voices, and was last updated 4 years, 10 months ago by
Dinesh.
-
AuthorPosts
-
June 26, 2020 at 7:05 am #377065
Splash
GuestHello Dinesh,
i use for name the value check “Letters Only”, but it´s something wrong with:
1. space between names -> Example “Frank Peter”
2. german Umlaute -> ö, ä, ü
all they are gives error output
see here
Is there a solution with no custum code?
Please do you can expand the Letters only with space and german Umlaute (ö,ä,ü).Thanks
TiloJune 26, 2020 at 7:16 am #377066Splash
Guest…and “-” for “Frank-Peter”
June 26, 2020 at 11:39 am #377096Splash
Guest…i use the PRO Version
Please let me know if you can correct it with “Letters Only” and
space, -, ä, ü, öThanks
TiloJune 26, 2020 at 12:03 pm #377100Splash
GuestAlpha numeric also do not accept german Umllute (ä,ö,ü).
Please you can set a new validation method with ä,Ä,ü,Ü,ö,Ö,- and space for all european languagesThanks a lot
TiloJune 26, 2020 at 12:15 pm #377102Dinesh
KeymasterHi,
I am aware that you are using the Pro version. We been in touch from very long :). I was creating another method to fix the issue so it took long.
Please add this javascript. Your theme might have some settings to add custom javascript. If not you can use this plugin to add the js code. https://wordpress.org/plugins/custom-css-and-javascript/
jQuery.validator.addMethod( "lettersonly2", function( value, element ) { return this.optional( element ) || /^[a-züöäÜÖÄß-\s]+$/i.test( value ); }, "Letters only please" );
After that, please change the field class to lettersonly2 and it will allow you to validate as mentioned above.
Thanks
June 27, 2020 at 1:54 pm #377211Splash
GuestHi Dinesh,
Thanks a lot ;o)
I have added your Code with this line
p><span class="fa fa-user background-icon"></span><tip>Geben Sie Ihren Vornamen an</tip>[text* asvorname default:get class:lettersonly2 placeholder"Ihr Vorname *"]</p>
but it accepts numbers…see here https://experten-kredite.de/kredit-mit-und-trotz-schufa/#kreditanfrage
https://share-your-photo.com/acb9e610bb
What’s the matter with this?At the future do you can add this solution in your pro plugin. I have more than one website and i want it easier.
Greetz
TiloJune 27, 2020 at 1:55 pm #377227Dinesh
KeymasterHi,
Have you placed this code first ? I couldn’t find it anywhere.
jQuery.validator.addMethod( "lettersonly2", function( value, element ) { return this.optional( element ) || /^[a-züöäÜÖÄß-\s]+$/i.test( value ); }, "Letters only please" );
Thanks
June 28, 2020 at 9:21 am #377294Splash
GuestHi Dinesh,
i have added the code at head
https://share-your-photo.com/519973b95d
I don’t know where is the issue?Thanks,
TiloJune 28, 2020 at 2:57 pm #377314Dinesh
KeymasterJune 29, 2020 at 6:30 am #377367Splash
GuestHello Dinesh,
…no way…sorry.
I have installed the PlugIn and insert the Code
de.share-your-photo.com/fae3abf112
with this Code from CF7
de.share-your-photo.com/eda11bb771
there is no correct validation
de.share-your-photo.com/c960de721f
For testing i deactivated the Cache.Do you can add this validation to a new method in the next Update? I think i am not the only one who want to use that validation method.
Thanks
TiloJune 29, 2020 at 3:05 pm #377431Dinesh
KeymasterHi,
Any chance you can send me your wp-admin details ?
I will fix it from here.
Thanks
June 29, 2020 at 7:10 pm #377464Splash
GuestHello Dinesh,
i have send you a Mail.
Thanks Tilo
June 30, 2020 at 4:27 pm #377597Dinesh
KeymasterFixed.
Please check your email for more details.
Thanks
June 30, 2020 at 5:35 pm #377612Splash
GuestHi Dinesh,
thanks a lot ;o)
It works great!Think about to integrate to the next Update…it will make happy some other website owners.
Greets
TiloJuly 1, 2020 at 3:06 pm #377720Dinesh
KeymasterHi,
So far no others have requested this feature. If such validation is requested more then i will definitely keep it.
Thanks
-
AuthorPosts
- The topic ‘Letters Only’ is closed to new replies.