cancel
Showing results for 
Search instead for 
Did you mean: 

ADOBE Form

Former Member
0 Kudos

Hi Gurus,

I have a requirement in ADOBE Form wherein basing on the movement type I need to print forms with two different headings say 'xxxxxx' and 'yyyyyy' either using single output type or else if any other method is there.

For Ex: Suppose if movement type is 205 then the heading of the form will be 'xxx' and if it is 206 the heading will be 'yyy'.

answers of doing it with single output type will be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Das,

Initially you have asked some other requirement, Any way i am providing the code for second requirement

Here i am providing the sample code for only if movement type is 205 or 206 both heading will displayed, otherthan these two movement types no heading will be dsiplayed...

IF ( ( movement type eq '205' ) or (movement type eq '205' ) ) then

$.headingfield1.presence = "visible"(XXX heading)

$.headingfield2.presence = "visible " (YYY heading)

else

$.headingfield1.presence = "hidden"(XXX heading)

$.headingfield2.presence = "hidden " (YYY heading)

endif.

Still you have concerns you can get back to me

Regards

Ramakrishna Pathi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You have 'alternative' option in Adobe Forms for ur requirement.

In that there will be condition for which u have to give if movement type = 225

text = 'XXXX'. For movement type 226 give text = 'YYYY'.

Right click on CONTEXT and create alternative.

Former Member
0 Kudos

Thanks Rammohan,

But my requirement is like this:

Movement Type : 205 Forms with headings 'xxxx' and 'yyyy'.

Movement Type : 206 Forms with headings 'xxxx' or 'yyyy'.

Former Member
0 Kudos

Hi,

Suppose if you have desinged the heading part in the master page

Desing the heading field1 and heading filed 2 on the same location (first field on to the second field)

Select the Event as layout ready and write the below code

IF movement type eq '205' then

$.headingfield1.presence = "visible"(XXX heading)

$.headingfield2.presence = "hidden" (YYY heading)

else

IF movementtype eq '206' then

$.heading2.pressence = "visible". (YYY heading)

$.headingfield1.presence = "Hidden"(XXX heading)

endif

Endif

If it is body page select event as Form Ready

Finally click on the '+' symbol so that code is in active

Finally activate the adobe form execute it. you will get the required output

Regards

Ramakrishna Pathi

Former Member
0 Kudos

Hi Pathi,

Thanks for your reply but what if for 205 movement type I have to print the form with heading 'xxxx' and 'yyyy' as well.

I missed out that point that for few movement types the form with both the headings should appear one after another and for few movement type it will be the form with only one heading.

Hope I could make it clear this time.