Validating subform rows that are never opened.

Comments

2 comments

  • Avatar
    Karl Makatenas

    The way that AgilePoint Forms code runs is that hidden fields are globally disabled.  A field must be shown in order to apply properties such as mandatory or validation.  I would add code to manually validate and submit the form instead of using the default buttons in this scenario unless someone else figured out a way using rules.

    0
    Comment actions Permalink
  • Avatar
    Karl Larsson

    Thanks, Karl... I found I can grab all the subform data via eFormHelper.getSubFormData, so I used that in conjunction with a trick someone else here had found in trying to validate subforms: I run my custom validation JS on the 'before validation' event, and then set a single field with the result. I then use that field in the validation event to block submission if needed.

    0
    Comment actions Permalink

Please sign in to leave a comment.