Simple Membership Plugin › Forums › Simple Membership Plugin › [front-end] Profil Validation
Tagged: Profil Validation
- This topic has 5 replies, 2 voices, and was last updated 4 years, 9 months ago by
mbrsolution.
-
AuthorPosts
-
July 27, 2021 at 11:40 pm #22902
nico
ParticipantHi,
it looks like my Profil edit form ( [swpm_profile_form] ) doesn’t validate data before saving ?
Ex.
—
=> I can create a user with a zip code with in registration form,
=> Once member created and logged, I can access the profil page (front-end) and change the zip code to “xxx” (letters) and it save it like that without errors (only number accpeted in this case, with a pattern).I’ve try to add ‘ class=”validate[required]” ‘ on one field and it validate it, displaying logicaly an error message.
=> Did you intentionnaly didn’t validate the front end profil edit page?
=> or did I missed something?
I guess for the second answser !Thank you, and thank you for this great plugin )
Thank you for your lights
NicolasJuly 28, 2021 at 12:04 am #22904nico
ParticipantNote : I’ve been desactivating all pplugin except SMP and the probleme still the same.
Note : WordPress 5.8 and all plugins have been updated.Nicolas
July 28, 2021 at 1:40 pm #22910nico
ParticipantHi,
Do I ONLY need to use the classes “validate[]” in order to validate the fields ?Thanks.
NicolasJuly 29, 2021 at 1:23 am #22913mbrsolution
ModeratorHi, can you test one of WordPress default themes like Twenty Twenty.
Also are you using the Form Builder addon?
Thank you.
July 29, 2021 at 2:43 pm #22916nico
ParticipantHi and thaank you to answer some.
actualy, in
views/edit.phpthere’s no classes on the different input fields.
And it seems classes likevalidate[ whatYouWantToValidate ]is the starting point to validate the form.I repeat myself, but the code is not in the
edit.phpfile.And so, I just would know if by adding the
validate[ (and choosing the good agrs too) ]is enougth to validate the form in the good way.In fact I already add some classes to the edit.php inputs of edit.php and it seems to works, so I think it’s not that bad… but I would know if it was eally the good way.
Thank’s
Nicolas.July 31, 2021 at 7:59 am #22939mbrsolution
ModeratorHi, I have submitted a message to the plugin developers to investigate further your question/suggestion.
Kind regards.
-
AuthorPosts
- You must be logged in to reply to this topic.