Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Hide dynamically a cell in table

Avatar

Level 2

Dear friends,

 

in a cell of a table i have a subform which allows to display a table of texts, but sometimes there are no texts to display so i would like to hide this subform object.

 

I know I have to do this in Javascript but being a newbie to LiveCycle I must have had it hard and therefore need your help.

 

Currently i have the following result:

 

Result_1.jpg

 

 

 

 

 

 

 

 

Now what would be good is not to display the cell which has no text, i.e. whose Texts [] table is empty, so the lines SERVICE 2, SERVICE 3, SERVICE 4 would be condensed on a single line:

 

Result_2.jpg

 

Attached my form file with the XML file HERE.

 

Thank a lot for your help. 😉

1 Accepted Solution

Avatar

Correct answer by
Level 4

Here is a sample that should do what you want, you can open it in Designer - please analyze and adapt your table accordingly.

https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:fb3da613-dfb9-46ff-ad58-5eb5473fdee9

View solution in original post

4 Replies

Avatar

Level 4
🙂 you have o give people time here - I will have a look when I get a spare minute

Avatar

Correct answer by
Level 4

Here is a sample that should do what you want, you can open it in Designer - please analyze and adapt your table accordingly.

https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:fb3da613-dfb9-46ff-ad58-5eb5473fdee9

Avatar

Level 2
Hi Kosta, thanks a lot for your answer, it works well, thank you very much 🙂