Home › Forums › Quform WordPress › Allowed only first name in first name fields
- This topic has 5 replies, 2 voices, and was last updated 5 years, 1 month ago by beingo.
- AuthorPosts
- February 9, 2019 at 8:27 pm #28482beingoParticipant
Allowed only first name in first name fields (for exemple)
I want permission for example in the field: First name
What real name.
If the user enters the form, first name fields, for example: Orange or Apple …. (in upper or lower case) the form is not valid. An error message appears.I tried to do it with “Regex” in advanced setting “form fields, reversing the control.
I put names allowed / Aladin | Antoni | Karim / but the list is very long.
moreover I must write the first name with a majusucle (Aladin) and in lower case (aladin). If not, it is misleading.Please, help me to make a quicker and easier solution.
February 10, 2019 at 10:30 am #28501AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 10, 2019 at 10:46 am #28502beingoParticipantSuperb!
thank you so much
it works ! I am happyI already have a plugin that was created:
Quform-custom.php
I insert here all the code relating to the change of the form and also the imput mask, validator 18 years …)For this code (allow first names in the list)
I need a specific .php pageCan I create a new .php file (example Quform-firstname.php) add this code and integrate this new .php file with the plugin “Quform-custom”?
February 10, 2019 at 11:02 am #28503beingoParticipantI wanted to embed the value in the error message.
I put this code: $element->addError(‘%value% The name is not valid’);He does not take into account.
February 10, 2019 at 12:26 pm #28505AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 10, 2019 at 1:51 pm #28512beingoParticipantexcellent
works
thank you so much
Subject solved 🙂 - AuthorPosts
- You must be logged in to reply to this topic.