Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - PDF Forms with Popup
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

PDF Forms with Popup

 Post Reply Post Reply
Author
khelios View Drop Down
New Member
New Member
Avatar

Joined: 30 May 2019
Points: 1
Post Options Post Options   Quote khelios Quote  Post ReplyReply Direct Link To This Post Topic: PDF Forms with Popup
    Posted: 30 May 2019 at 3:34am
Hi All, 

I have a form that has a number of dropdowns and once the user select and commit a dropdown a pop up currently appear, and what i intend is for that when the user select one of the option in the dropdown it will the show/ hide a number of fied (including dropdown) 

The code i'm using is currently 

else if( event.willCommit && event.value == "Capex" && ProjectNo== "NSWTA089S - CCEP") { 

var cChoices = app.popUpMenuEx
({cName: "Pilot",cReturn:"1"},   
{cName: "2.Program Management",cReturn:"2"},   
{cName: "3.Statewide",cReturn:"3"},   
{cName: "4.System",cReturn:"4"}   
)

if (cChoices !== "null" && CChoices== "1") {
this.getField("ProjectCode1").display = display.hidden;
this.getField("glCapex1").display = display.visible;
this.getField("glOpex1").display = display.hidden;
this.getField("ccepOpex1").display = display.hidden;
this.getField("genLeg1").display = display.visible;
this.getField("Pilot1").display = display.visible;
this.getfield("SW1").display = display.hidden;
this.getfield("System1").display = display.hidden;
this.getfield("PM1").display = display.hidden;
}

else if (cChoices !== "null" && cChoices == "2") {
this.getField("ProjectCode1").display = display.hidden;
this.getField("glCapex1").display = display.visible;
this.getField("glOpex1").display = display.hidden;
this.getField("ccepOpex1").display = display.hidden;
this.getField("genLeg1").display = display.visible;
this.getField("Pilot1").display = display.hidden;
this.getfield("SW1").display = display.hidden;
this.getfield("System1").display = display.hidden;
this.getfield("PM1").display = display.visible;
}

else if (cChoices !== "null" && cChoices == "3") {
this.getField("ProjectCode1").display = display.hidden;
this.getField("glCapex1").display = display.visible;
this.getField("glOpex1").display = display.hidden;
this.getField("ccepOpex1").display = display.hidden;
this.getField("genLeg1").display = display.visible;
this.getField("Pilot1").display = display.hidden;
this.getfield("SW1").display = display.visible;
this.getfield("System1").display = display.hidden;
this.getfield("PM1").display = display.hidden;
}


else if (cChoices !== "null" && cChoices == "4") {
this.getField("ProjectCode1").display = display.hidden;
this.getField("glCapex1").display = display.visible;
this.getField("glOpex1").display = display.hidden;
this.getField("ccepOpex1").display = display.hidden;
this.getField("genLeg1").display = display.visible;
this.getField("Pilot1").display = display.hidden;
this.getfield("SW1").display = display.hidden;
this.getfield("System1").display = display.visible;
this.getfield("PM1").display = display.hidden;
}}

however the only code that is working is the pop up and when user clicking the popup nothing else happened 

can any expert here help me 

Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.