How do I count the number of Multi-Paging Subform records?

Follow

Comments

5 comments

  • Avatar
    Hamish

    This is great. However - when there are no subforms this doesn't appear to evaluate and leaves the field blank. I need something that returns 0 when there are 0 subforms. Thanks

    0
    Comment actions Permalink
  • Avatar
    Hamish

    I've found that if (typeof my_parent_form.subform_element_in_parent !== 'undefined') is a way to get around this....

    0
    Comment actions Permalink
  • Avatar
    izzuddin

    Hi, 

    is there any change in "If your subform is nested inside another subform which is Multiple link use this:" 

    my_parent_form.first_subform_element[my_parent_form.first_subform_element.index].nested_subform_element.length

    previously was working it's just stopped working yesterday  

     

    best

    0
    Comment actions Permalink
  • Avatar
    Tony Ruth

    Hi Izzuddin, please check the names of all your forms and elements to make sure they are the same as your code as that is the most likely reason for the sudden change in behavior.

    0
    Comment actions Permalink
  • Avatar
    izzuddin

    Thanks, Tony I just do renaming of all linked elements  and its worked well 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk