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

How to hide rows when having Multiple line values

Avatar

Level 1

Hello,

I'm designing a form which include a table with only one header row and one body row. However, this row is set to have multiple values so it will depend on the data on the system it may have 1-n rows.

What i want to accomplish is:

Limit some of the rows to be visible when in one of the fields have a specific value "x".

Item
Main itemDescription
10Product A
2010Product B
3010Product C
40Product D

I want to restict the lines 20 and 30 to be visible in the form. So when field main item is populated, the line should be hidden.

if(Form1.bdyMain1.frmTableItems.tblItems.rowItemContent.colProdDesc.rawValue == "");

then

  Form1.bdyMain1.frmTableItems.tblItems.rowItemContent.presence = "visible";

else

Form1.bdyMain1.frmTableItems.tblItems.rowItemContent.presence = "hidden"

endif

Tried to use this code but the entire row gets deleted, i guess it is considering only 1 row...

Anyone knows how to accomplish this?

Many thanks in advance

Cheers

0 Replies