cancel
Showing results for 
Search instead for 
Did you mean: 

Pages enabling and disabling in Adobe forms

Former Member
0 Kudos

Hi all,

          I have 2 pags in myh Adobe form.Based on a condition (FLAG input) i need to display the page.

If Flaginput = 1.

Display page 1.

else.

Display Page 2.

endif.

How to write a Java script code for this.

else.

Is there any other way to do this without java script code.

Accepted Solutions (0)

Answers (1)

Answers (1)

chris_scott
Active Participant
0 Kudos

Hi Ramya,

Is your flag input a field on the form or a form variable?

If it's a field you will need the full path to the field, and use the .rawValue property.

If it's a form variable then you can refer to the variable directly and use the .value property.

On the initialize event of the two pages, add:

if ( flaginput.value == 1)

{

  this.presence = "hidden"

}

else

{

  this.presence = "visible"

}

If you are using FLM then you can control this in the 'Subform and Field Control' user-exit, and add the same logic in ABAP instead of JavaScript.