How does validationGroup work?

This should be a simple topic but I haven't been able to completely figure out how does the validationGroup work. For example, let's say I have a form with two sections. On the first section I have two fields and a buttonWidget. In another form I have two other fields with another button. The fields on the first section I have them as required=true but the fields on the second section are NOT required. If I leave the fields on the first section blank and I click on the button from the SECOND section, the validations will kick off on the first section. I DONT want this to happen. I want the sections to be independent. I tried adding validationGroup to the button and respective fields and the red * from the required fields are gone. Why are they gone when I add validationGroup? How can I make the buttons be independent for their given sections?

Why something so simple like this seems to be more complicated? Am I making it more complicated than what it actual...

OriginalPostID-205318

OriginalPostID-205318

  Discussion posts and replies are publicly visible

Parents
  • Hello erickp, In the beginning when I don’t know the proper use of validation group I also thought like why * mart is not showing for labels when make the filed as required. But later I under stood that, it was not a good way to show * mart when the field is required only on certain conditions. So if you provide validation group for any fields in the form or section then it will not show any * mark for those field labels but it will validate them when you click on the button which is related to that validation group.
Reply
  • Hello erickp, In the beginning when I don’t know the proper use of validation group I also thought like why * mart is not showing for labels when make the filed as required. But later I under stood that, it was not a good way to show * mart when the field is required only on certain conditions. So if you provide validation group for any fields in the form or section then it will not show any * mark for those field labels but it will validate them when you click on the button which is related to that validation group.
Children
No Data