Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    RequiredIfFunction for when FormItem is shown

    I have some FormItems that get shown/hidden depending on a checkbox. I would to add a RequiredIfValidator with a RequiredIfFunction that makes the item required only if the FormItem is shown. I tried using FormItem.isDrawn() and FormItem.getVisible() but those both return true when the item is hidden. Is there another method I should call?

    Thanks!

    #2
    isVisible() is correct. Are you possible calling it on the wrong item (eg the checkbox, instead of on the item that is *affected by* the checkbox)?

    Comment

    Working...
    X