on 01-23-2008 2:46 AM
Hi All:
I'm new to using interactive forms and I am creating a new form for material request. I need to hide selected fields based on the value of other fields. I also need to hide subforms the same way.
I have added the formcalc script to hide the field which apperas to work. But is I remove the field value, the hidden field is not made visible. This also applies to the hiding of the subform. I have tried the code at different events but no luck. If I enter 'KINC' in the plant field, the KINC_TAX_IND is visible. But if I remove or change the value, the KINC_TAX_IND is not being made visible.
Below is the code I am using:
if ( PDF_DATA.#subform[0].PLANT.value == "KINC" ) then
PDF_DATA.#subform[0].KINC_TAX_IND.presence= "visible"
else
PDF_DATA.#subform[0].KINC_TAX_IND.presence= "hidden"
endif
if ( PDF_DATA.#subform[0].PLANT.value == "" ) then
PDF_DATA.#subform[0].Subform2.presence= "hidden"
else
PDF_DATA.#subform[0].Subform2.presence= "visible"
endif
Thanks for any help.
Jim
Edited by: Jim Bates on Jan 23, 2008 3:47 AM
HI jim,
TRY TO APPLY THE CODE ON INITIALIZATION EVENT OF THE FORM.
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.