cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe print form - hide field depending on company code

Former Member
0 Kudos

Hi,

I want to add different company logos to an adobe print form depending on company code. My idea was to add one image field per company logo and then at runtime hide the fields not containing the correct logo depending on company code.

I use form calc scripting to check if field company code contain 4400, then I hide the image fields containing logos not relevant for company code 4400.

Code is like this:

if ( xfa.form.data.MainPage.Cost_allocation.Comp_code.rawValue ne '4400' )

then $.ImageField.presence = "hidden"

endif

I use event Initialize.

I cannot get this to work. Anyone who knows if I am on track and if it should be possible? I saw in documentation that if I want to hide/display fields adobe form needs to be saved as an Acrobat Dynamic PDF Form. Is this possible for print forms? I create my form in tx SFP.

Best Regards,

Christine Lexander

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It is possible to change the layout dynamically for Print Adobe Forms as well.

You can use the below javascript:

if ( xfa.form.data.MainPage.Cost_allocation.Comp_code.rawValue != '4400' )

this.presence = "hidden";

and select Javascript in the Script Editor.

Former Member
0 Kudos

Hi,

Thanks for your answer. We decided to go with the solution of having one PDF for each company instead. This solved our issue.

BR

Christine

Former Member
0 Kudos

I moved question to Adobe interactive form forum instead