Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Expand/Collaps Control in Adobe LiveCycle Desinger Forms.

Avatar

Level 8

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 8

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.