Custom Registration : Validation messages not thrown

Shweta S asked on August 21, 2015 21:00

Hi,

We have a custom registration form with some fields as required so we used custom registration web part to display the form. The layout of the form is HTML. The problem is while trying to submit the form, no validation messages are displayed for the fields that are required.

Recent Answers


Roman Hutnyk answered on August 21, 2015 21:38

Have you added validation to your form? This is your responsibility to place label, input and validation for the fields on the form.

0 votesVote for this answer Mark as a Correct answer

Shweta S answered on August 21, 2015 21:48

Hi Roman,

Yes, I have placed validation in the layout.

This is the layout in Modules -> Membership -> User -> custom registration form name) -> layout:

$$label:FirstName$$
$$input:FirstName$$ $$validation:FirstName$$
$$label:LastName$$
$$input:LastName$$ $$validation:LastName$$

Both first name and last name are marked required while adding fields in Modules -> Membership -> User -> (custom registration form name) -> fields.

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on August 22, 2015 03:58

What about other forms? Have you tried default registration form? Does it show validation errors?

0 votesVote for this answer Mark as a Correct answer

Shweta S answered on August 24, 2015 18:12

Hi Roman,

Yes, the default registration form throws validation messages but not the custom registration.

0 votesVote for this answer Mark as a Correct answer

Shweta S answered on August 24, 2015 18:17

Well if everything is left blank and form is submitted then it throws message only for invalid captcha. Only after that is entered and again form is submitted; then it displays validation messages for other fields.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.