Enable access to Sub-Form Label from within sub-form
We have a situation where we would like to use the same subform for multiple inspection locations.
We have a "Caption" text element inside the subform that we would like modified based on the subform label.
This would eliminate the need for an additional toggle element to set between upper/lower as found/cleaned inspection locations.
These toggles are causing an issue as users often make mistakes which could be eliminated based on subform label.
-
Official comment
Hi Lucas,
Thanks for sharing. This is a request we've fielded in the past so glad to have some corroboration on its usefulness. I've passed along the request and am hopeful we can see this added in a future release. For now, would the built-in function iformbuilder.parentFormLabel be a viable option?
Jonathan
Comment actions -
We have tried to do similar things and ended up having to duplicate the subform. It would be much more elegant if we could reuse the subform. For my situation, the parentFormLabel would not help but it would be very helpful if the subform could dynamically read the name of the field that is hosting the subform so that we could conditionally apply values in the subform based on where the user was accessing the form.
For example
Main form - Individuals on-site
first instance of subform - Subcontractors
second instance of subform - Police Detail
When the user enters the first instance of the subform, the subform would automatically apply a Subcontractor stamp in a text field and would show/hide specific fields
When the user enters the second instance of the subform, the subform would automatically apply a Police Detail stamp in a text field and would show/hide different fields
Please sign in to leave a comment.
Comments
2 comments