Skip to Content
avatar image
Former Member

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

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";
}




capture.jpg (18.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 24, 2017 at 07:40 AM

    Hi!

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

    Evgeny

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 24, 2017 at 10:18 AM

    Hi,

    Thanks it worked.

    Regards,

    Satish

    Add comment
    10|10000 characters needed characters exceeded