Required Fields Being Ignored
Support › MB User Profile › Required Fields Being Ignored
- This topic has 4 replies, 2 voices, and was last updated 3 years, 3 months ago by
Long Nguyen.
-
AuthorPosts
-
August 27, 2022 at 2:32 AM #38078
John Rood
ParticipantPlease let me know if this needs to be moved to the MB Front End Submit forums.
We have a front-end registration form that pulls in a few extra Meta Boxes that we created in the builder.
There are about 14 extra required fields that get submitted alongside the form that are crucial to the registration process. However, all of these can be ignored if the user simply enters a username, email, and valid password.
Here's a screenshot of the form without any of the required info.
As you can see, the form submits when it shouldn't.
All of the required fields are ignored, unless one is touched and then unset. Then the validation will fail as expected.
How can we make it so all of these fields are truly required to submit the form?
August 27, 2022 at 7:44 PM #38091Long Nguyen
ModeratorHi John,
I'm not able to reproduce that issue on my end, screen record https://monosnap.com/file/piIbohRNmeDTHga5OGxhRpsFLyzZ1a
The required field is working correctly if the field is empty.
August 29, 2022 at 10:20 PM #38112John Rood
ParticipantI have a screen recording of what I'm experiencing. Could it be because I have multiple metaboxes?
I am using custom code to modify the default fields. Could it be anything related to this.
August 29, 2022 at 11:34 PM #38113John Rood
ParticipantI have just tested with the pastebin code I shared previously disabled. The issue still persists.
The only other thing I can think of is maybe it has something to do with the way I am using the shortcode?
Here's how I'm adding the form:
[mb_user_profile_register password_strength='medium' role="pending_dealer" id="default-fields, dealership-user-details,dealer-contact-information,dealer-consent" confirmation="We have received your account information and your account is currently pending. In the meantime, you may log in to your account to modify your profile details. Once your account is approved, you will receive a message with further instructions." ]The
default-fieldsbox is added via the pastebin code I shared earlier. The rest are added with the builder, but I just double checked and all of those are set to required within the builder.August 30, 2022 at 10:42 PM #38130Long Nguyen
ModeratorHi,
There is no issue after implementing your code and shortcode on my local site, screen record https://monosnap.com/file/V5lUd9Luv8WsWAy1Y0pdV65rUqeLLP
Can you please test this issue again with a fresh install of WordPress, Meta Box and no other plugins?
-
AuthorPosts
- You must be logged in to reply to this topic.