Call a Javacript Function from a Button

hillk1
Community Member Posts: 8
I now realize that the querystring (?roleid=909&caseid=1723&presid=8907) is only available on the first page of the title because on Next, Lectora loads a separate page. I need to be able to capture the "?roleid=909&caseid=1723&presid=8907" in a variable and then pass that variable back into the function when the user reaches the last page and they click the Done button.I'm thinking an action:On: ShowAction: Modify VariableTarget: QueryLocationValue: ?Modifcation: Set Variable ContentsDone button function:Action: Go ToTarget: Web AddressWeb Address: javascript:goNext(QueryLocation)Header Script Function:function goNext() { window.top.location.href='/onlinelearning/trnmnu.asp' + QueryLocation + '&moveForward=1' }}Would something like this work?Where do I establish "QueryLocation" as a variable?
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 327 CenarioVR®
- 194 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products