I’m very new to Javascript in Acrobat and have modified a piece of online tutorial script to launch a two-level pop-up menu in a PDF document in response to a check box being selected...works fine so far.
Now I’d like to action the choice people make using the pop-up menu selection by taking them to an online pdf relevant to their choice.
Essentially – I’m trying to help elementary school teachers at my school implement a simple planning tool that will take them to the professional online references they need to complete the curriculum planning process.
If a teacher chooses Year 3 SOSE Essentials from the pop up menu I’d like that click/return to initiate a new browser window and the launch of the URL and the online pdf that has the Year 3 SOSE Essentials.
Alternatively the Year 3 Assessable Elements, if that is their choice, and so on with Year 5.
I played with app.launchURL but after reading many forums and scouring Google I realised that this app is not supported in Acrobat 6 which is where I’m at. I’m stuck.
Any help with the code to achieve this would be tremendous and really, really appreciated…
Thanks for considering my request for help…
Working Code for the Pop Up menu so far, with my button names:
var strResult =
app.popUpMenuEx({cName:"Year 3 SOSE",oSubMenu:[{cName:"Year 3 SOSE Essentials",cReturn:"Year 3 SOSE Essentials:Essentials"},
{cName:"Year 3 SOSE Assessable Elements", cReturn:"Year 3 SOSE Essentials:Assessable Elements"}]
},
{cName:"Year 5 SOSE",oSubMenu:[{cName:"Year 5 SOSE Essentials",cReturn:"Year 5 SOSE Essentials:Essentials"},
{cName:"Year 5 SOSE Assessable Elements", cReturn:"Year 5 SOSE Essentials:Assessable Elements"}],
});
George Kaiser