Side by Side Custom Validation Dependent on if item selected as top 3 | Experience Community
Skip to main content
Question

Side by Side Custom Validation Dependent on if item selected as top 3

  • Oct 8, 2020 12:47 AM UTC
  • 2 replies
  • 44 views

image.png
I have the Side by Side question above where I would like the user to select the top 3 "Var 1 Categories". For the items selected as the top 3, I want the priority shift to be mandatory (again, only for the top 3 items selected), and the comment field associated to be optional.

If there can be any hide/show that happens with the priority shift & comment field that would be ideal, but bottom line need the validation requirements to work.

THANKS!

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Oct 8, 2020 6:56 AM UTC

Yes, we can use JS on click event on checkbox and based on priority check is selected or not, we can disable or enable the next button.


JS/CSS is not my strong suit, are you able to provide a sample code?

Thanks much!