Problem/Motivation

- Create a vocabulary having some terms at Level 1 and each level 1 term should have atleast one child
- Create a field of taxonomy type on user account settings with Widget type hierarchical select and mark it "required"
- Now select a term on user's edit profile page but don't click "Add" button
- Click save
- The form gets submitted but it should show the message that the field is required and after submission, it shows the validation message.

Proposed resolution

I think the best will be to check if some term was added or not using "Add" button.

I apologize for poor english

Comments

attiks’s picture

What happens if you don't select a term and just hit save?

PS: No need to apologize, your English is fine.

qasimzee’s picture

If I don't select any term and hit save, the validation works correctly. It shows the message, "field_name is required"

And thank you so much Droogmans for such a quick reply.

attiks’s picture

Status: Active » Closed (works as designed)

I assume this is fixed, it not feel free to re-open this issue

qasimzee’s picture

Status: Closed (works as designed) » Active

Just downloaded the latest dev version but the issue doesn't seem to be fixed. Steps to reproduce are same as given in the issue's description

qasimzee’s picture

Issue summary: View changes

qasimzee

garamani’s picture

Issue summary: View changes

HS form doesn't get validated by clientside validation.

I checked available options with no success:

  • installing the latest Dev version
  • Enabling Field validation module
  • Setting a custom validation rule (Required field and Require some of several fields)