Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

REG: Hiding Objects in adobe forms

Dear Experts,

I am working on interactive forms. I have some queries which are as following:

- I am designing an adobe template with a subform to be diplayed when required else not. I tried the visibility option but it seems it has to be done using Scripts.

- In the scripts editor, I am using a script to make a particular sub form invisible:

xfa.form.Vn_DataSource.pageSet.Page1.SubForm_AlertStamp.presence="Hide"

-This is giving me error like:

accessor-unkown if I keep it at datasource and run it at the initialize.

-If I keep the code at the particular subform and run it at initialize, it gives me an error like:

Invalid enumerated value: hide

I am unable to understand where to keep my code or whether I need to do some modifications in the script?

-I am using FormCalc.

Also, Is it possible to have a attribute of type integer and call it in the script to check if it is 0, I need to display the subform else not.

I hope I am clear with my queries. Helpful answers will be appreciated.

Thanks in advance,

Regards,

Gaurav.

Former Member
replied

I guess then the problem is just the case.

Use the same case that you see before the event name

xfa.form.Vn_DataSource.pageSet.Page1.subForm_alertStamp.presence = "hidden"

Reema.

Note that the keyword is hidden and not hide.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question