cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding a subform based on field value.

naimkhans_babi
Active Participant
0 Kudos

Dear Friends!

  I am trying to hide one subform when I have certain value in text field. I tried following code but it didnt help me at-all. will it be possible for you to show my my mistake.

the business case is I am not supposed to display Form 16 related information in payslip when payroll areas are 13 & 14 for other payroll areas form 16 should display.   here subformname is Form16.

code:


data.#pageSet[0].Page1.Form16.Form16::ready:form - (JavaScript, both)

IF(data.page1.payslipheader.GV_ABKRS.rawValue == 13);{

   Form16.presence = "hidden";

}

IF(data.page1.payslipheader.GV_ABKRS.rawValue == 14);{

    Form16.presence = "hidden";

}

above code is not hiding Form16 subform.

thanking you

Regards

Naim

Accepted Solutions (0)

Answers (1)

Answers (1)

SandySingh
Active Contributor
0 Kudos

Hello

Under initialize event of subform, insert the following formcalc script

if ( $record.page1.payslipheader.GV_ABKRS.rawValue == 13) then

this.presence = "hidden"

else

this.presence = "visible"

endif

Hiding of a subform or a page in Adobe Forms - Contributor Corner - SCN Wiki

Regards

Sandy