cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe form Subform hiding only once for table data whwn using scripts.

Former Member
0 Kudos

Hi Experts,

This is the table which i am using. I want to hide the "Subtotal" subform if the value in SVEMNG is 0 or null.

for this i have written below a javascript in "form:ready" for field SVEMNG with the expectation that for row item it will check for the value of SVEMNG to be null or 0 and then hide the subform. But this has partially solved my problem as subform got hidden only once.

Please let me know how to fix this.

//data.BodyPAge.Table.Bodyrow.Item_Data.Subtotal.SVEMNG::ready:form - (JavaS
cript, client)

if( this.rawValue == 0 || this.rawValue == null)
{
data.BodyPAge.Table.Bodyrow.Item_Data.Subtotal.presence = "hidden";
}




Accepted Solutions (1)

Accepted Solutions (1)

former_member400468
Active Participant
0 Kudos

Hi!

You can do it in other order. Try to set this script for the subform, not for the field

Evgeny

Former Member
0 Kudos

Thanks it worked

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Thanks it worked.

Regards,

Satish