Is there a control in LC Forms to allow Expand/Collaps of a repeating subform elements ?
Basically, I want to hide/show a list of elements (repeating subform) using a Control that looks like "+" (expand) and "-" (collaps).
How to implement this feature ?
Tarek.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Tarek,
You can achieve this with a button that toggles the fields height property from .h to .minH. In both cases you pass the same value, but .minH will allow the object to expand to show all of its content.
The form has to be saved as dynamic.
Sample here: https://acrobat.com/#d=KVeR0qUe9TMd0CCRBEeFTA
Hope that helps,
Niall
Views
Replies
Total Likes
Hi Tarek,
You can achieve this with a button that toggles the fields height property from .h to .minH. In both cases you pass the same value, but .minH will allow the object to expand to show all of its content.
The form has to be saved as dynamic.
Sample here: https://acrobat.com/#d=KVeR0qUe9TMd0CCRBEeFTA
Hope that helps,
Niall
Views
Replies
Total Likes
WOW ... this is very nice .
I like your idea about using special font to get this effect.
This is the code I am using for Click Event:
if (sfAttendancesItem._sfTimeEvents.count != 0) {
var cmdExpandToggleCaption = this.caption.value.resolveNode("#text")
if (cmdExpandToggleCaption.value == "u") {
sfTimeEvents.presence="visible";
cmdExpandToggleCaption.value = "q"
} else {
sfTimeEvents.presence="hidden";
cmdExpandToggleCaption.value= "u"
}
}
And, this is the code I am using for the Initialize Event on the parent subform:
this.sfTimeEvents.presence="hidden";
if ( this.sfTimeEvents._sfTimeEventsItem.count == 0) {
this.cmdExpandToggle.presence="invisible";
}
And ... it worked.
Thank you so much for the cool idea.
Could you please give a link for all your sample work ... I am sure I am missing a lot.
Tarek.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies