Call the subforms name from an element within the subform itself

Comments

13 comments

  • Avatar
    Lucas

    Any chance of this being developed?  Thanks

    1
    Comment actions Permalink
  • Avatar
    Lucas

    Hi Le,

    Any progress on this feature?  Did your discussions produce any timeline?

     

    Thanks

    Lucas

    1
    Comment actions Permalink
  • Avatar
    Cameron Mckinnon

    Bump for this.

    Using the same subform on multiple subform elements on one parent form requires this functionality to dynamically change the subform to make it relevant to the parent form question being answered.

    Regards,
    Cameron. 

    1
    Comment actions Permalink
  • Avatar
    Jonathan Hsu

    Sorry for confusing you more. We're on the same page. What I called a data-column-name is the same field you highlighted in red. I'll take this feedback to the team, appreciate the input!

    1
    Comment actions Permalink
  • Avatar
    Permanently deleted user

    Hi Lucas, I'm bringing this up to the Development team this week to put it under their radar..definitely possible but we don't have a timeline yet as of right now.

    0
    Comment actions Permalink
  • Avatar
    Lucas

    Cameron.

    Exactly.  I dont understand why this isnt available already.

    Cheers

    Lucas

    0
    Comment actions Permalink
  • Avatar
    Jonathan Hsu

    Cameron, Lucas,

    I wanted to get a little more clarity on the use case as we're discussing potential solutions. We have an enhancement to add two new built-in functions that would print the name and the label of a form. However, given the original post I'm not quite sure this satisfies the requirement since you're looking to query the parent form's name is that correct? In that scenario a function to return the parent form's name/label or even ID would be necessary.

    The more we know the better we can do so any insight is appreciated.

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Lucas

    Hi Jonathan,

    What I believe we are both asking for (Cameron correct me if I am wrong) is to be able to use a sub-forms name in conditional statements of elements contained within the given sub-form.

    This would mean the same sub-form could be used multiple times but each instance would show different elements (filtered by the name given to the sub-form instance).

    Example:

    Parent Form

    ----| - Sub Form - Name: Sub1

    ----|----| - Element 1 - (shows only when Sub-Form name is set to Sub1)

    ----|----| - Element 2 - (hidden)

    ----|----| - Element 3 - (hidden)

    ----|----| - Element 4 - (hidden)

    ----| - Sub Form - Name: Sub2   (same sub-form just different name)

    ----|----| - Element 1 - (hidden)

    ----|----| - Element 2 - (shows only when Sub-Form name is set to Sub2)

    ----|----| - Element 3 - (shows only when Sub-Form name is set to Sub2)

    ----|----| - Element 4 - (hidden)

    ----| - Sub Form - Name: Sub3   (same sub-form just different name)

    ----|----| - Element 1 - (hidden)

    ----|----| - Element 2 - (hidden)

    ----|----| - Element 3 - (hidden)

    ----|----| - Element 4 - (shows only when Sub-Form name is set to Sub3)

    0
    Comment actions Permalink
  • Avatar
    Jonathan Hsu

    Lucas,

    Thanks I think that clears things up for me. You want the data-column-name of the parent element. So if you use the same same subform twice in a form you know which time it was used. For example if you have a photo subform used for both before and after pictures you can differentiate the two and subsequently build resulting Smart Controls.

    0
    Comment actions Permalink
  • Avatar
    Lucas

     

    Sorry Jonathan,

    Your reply confused me a little.  See image below.

    We want to be able to use a conditional value: if(sub-form-name = "rope_1") Then for elements inside the sub-form.

    Would be great to be able to use the same new property for values too.  This would help us remove required selections when building captions/tags for images etc.  eg. inside the sub_form named Rope 1 all captions would contain Rope 1 without the need for any user input.  Then the same sub_form named rope_2 would have all captions to have Rope 2 in them etc.

    This can only currently be achieved by having multiple different subforms (created in the form builder).

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Lucas

    Perfect.  Appreciate you following up and looking into it for us.

    0
    Comment actions Permalink
  • Avatar
    Cameron Mckinnon

    Yep, correct. I was thinking you could use the element_id in the meta data of the subform, but the name will do.

    Thanks and Regards,

    Cameron

    0
    Comment actions Permalink
  • Avatar
    Permanently deleted user

    Hi Everyone,

    In our next android release 8.9 this feature is available as iformbuilder.formName  https://iformbuilder.zendesk.com/hc/en-us/articles/360027972491-Android-Release-Notes-8-9

    Join the Android Beta today to get early access to this functionality.

    Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk