Click the click box, text entry box, or the button.
- Captivate Classic User Guide
- Introduction to Captivate
- Captivate Classic Release Notes
- Create Projects
- Create different types of projects in Adobe Captivate
- Customize the size of an Adobe Captivate project
- Responsive Project Design with Adobe Captivate
- Create Virtual Reality (VR) projects
- Work with responsive text in Adobe Captivate
- Work with themes in Adobe Captivate
- How to apply view specific properties in responsive projects
- How to create backup files for Adobe Captivate projects
- Asset panel
- Create branching and forced navigation in Captivate
- Replace image on the stage
- Add and Manage Objects
- Work with multi-state objects in Adobe Captivate
- Object effects
- Insert web objects in Adobe Captivate projects
- Work with object styles in Adobe Captivate
- How to rotate objects in Adobe Captivate
- How to manage objects with the Main Options toolbar
- How to merge objects in a slide
- How to manage objects in the library
- How to group objects in Adobe Captivate
- Edit object information using the Advanced Interaction panel
- How to copy, paste, and duplicate objects in Adobe Captivate
- Control the visibility of objects
- How to change the display order of objects in Adobe Captivate
- Apply shadows to objects
- How to align objects in Adobe Captivate
- How to add reflection to objects in Adobe Captivate
- Import assets into a Captivate project
- Slides
- Add slides to an Adobe Captivate project
- Editing slides in an Adobe Captivate project
- Delete Adobe Captivate project slides
- Change slide order in Adobe Captivate
- Set slide properties in Adobe Captivate
- Add and convert slide notes to audio files with Adobe Captivate
- Set up knowledge check slides in Adobe Captivate
- How to add slide transitions in Adobe Captivate
- How to work with master slides in Adobe Captivate
- How to lock Adobe Captivate slides
- How to hide or exclude slides in an Adobe Captivate project
- How to group and ungroup slides in Adobe Captivate
- Timeline and grids
- Create Quizzes
- Insert question slides in Adobe Captivate projects
- Set quiz preferences for Adobe Captivate
- How to enable learners to submit all quiz responses simultaneously
- How to set up question slides with Adobe Captivate
- Using random question slides in Adobe Captivate
- How to allow users to return to quiz
- Import questions from CSV format files
- Import questions from GIFT format files
- How to insert pretests in Adobe Captivate
- Audio
- Video
- Interactive Objects
- Interactions
- Non-interactive objects
- Create and edit smart shapes
- Edit and create text captions with Captivate
- How to use images and rollover images with Captivate
- How to customize smart shapes in Adobe Captivate
- How to create zoom areas in Adobe Captivate
- How to set audio for noninteractive objects
- How to create rollover slidelets in Adobe Captivate
- How to create rollover captions in Adobe Captivate
- Change mouse properties in Adobe Captivate
- Use highlight boxes in Captivate
- Work with swatches in Adobe Captivate
- Fix size and position of non-interactive objects
- Add animations to a Adobe Captivate project
- Advanced Editing and Project Reviews
- Variables and Advanced Actions
- Record Projects
- Publish Projects
- Preview and publish responsive projects
- Publish project to Adobe Captivate Prime
- Publish projects as HTML5 files with Adobe Captivate
- Publish projects as executable files
- Publish projects as MP4 files with Adobe Captivate
- Set publishing preferences in Adobe Captivate
- Using web fonts from Adobe Fonts in Adobe Captivate
- Report quiz results to an internal server
- Use Adobe Captivate with Other Applications
- Import and edit PowerPoint presentations in Captivate
- Upload an Adobe Captivate project to a Learning Management System
- Learn about the Common JavaScript interface for Adobe Captivate
- How to publish Captivate projects to Microsoft Word
- Using Adobe Connect with Captivate
- How to add Captivate projects to a RoboHelp online help system
- How to package multiple SCOs using the Adobe Multi-SCORM Packager
- Troubleshoot Adobe Captivate
- Resolve known issues and limitations in the latest versions of Adobe Captivate, Adobe FrameMaker, and Adobe RoboHelp.
- Early build for Captivate (2019 release) on macOS Big Sur (macOS 11)
- Hotfix for VR content not playing on devices
- Configure SSL for Live Preview on Devices
- Captivate (2019 release) activation issues on macOS Catalina
- Captivate responsive courses will not auto-play on browsers
- Issues with Asset panel in Adobe Captivate (2019 release)
- Error 103 while installing Adobe Captivate
- Issues when previewing a Captivate project
- Resolve known issues and limitations in the latest versions of Adobe Captivate, Adobe FrameMaker, and Adobe RoboHelp.
You can add JavaScript to click boxes, text entry boxes, and buttons in Adobe Captivate Classic projects. The JavaScript can run when a user clicks inside or outside the box or button. Using JavaScript gives you the opportunity to extend projects in numerous ways while adding interactivity.
-
-
In the Action section of the Property inspector, select Execute JavaScript in the On Success drop-down list.
-
Click Script_Window.
-
Enter your JavaScript code in the text box and click OK. If you have the JavaScript in another location, copy it and paste it into the text box.
Examples
In this example, you will enter a name in a text entry box and click a button. If the name matches a pre-defined value, you will see a success message, else you will see a failure message.
-
Create a variable uName for the project. Do not assign any value to uName. For more information on creating a variable, see Create variables.
-
Insert a text entry box (Text > Text Entry Box) and assign the variable as a value in the text entry box. Highlight the text caption in the box and click [X] in the Properties Inspector. When you click [X], you can see a drop-down list from where choose the variable you had created and insert the variable as text in the text entry box.
This acts as a validation against any name other than the one you will set in the Advanced Actions panel.
-
Insert a button (Interactions > Button) near the text entry box. Select the button, click Actions in the Properties Inspector, and choose Execute JavaScript from the On Success drop-down list.
Also, clear the Continue Playing the Project check-box to pause the slide after clicking the Submit button in the browser.
-
Enter the following JavaScript code in the script editor.
myName=window.cpAPIInterface.getVariableValue("uName"); if (myName=="John") { alert("Hello "+ myName + "!"); } else { alert("Wrong name. Try again."); }
-
Run the project in the browser. If you enter "John" in the text field and click Submit, you can see a pop-up that displays Hello John!
If you enter anything else, you can see a pop-up that displays a failure message.
In the second example, you will use some in-built Captivate Classic variables and view information, such as, current date or number of slides in a project. For a list of all Captivate Classic system variables, see Captivate Classic variables.
As shown in the previous procedure, create a button, and assign it to execute some JavaScript code upon a click event.
To display the current date in DD/MM/YYYY format, use the variable cpInfoCurrentDateStringDDMMYYYY. Enter the following JavaScript code in the code editor.
myDate=window.cpAPIInterface.getVariableValue("cpInfoCurrentDateStringDDMMYYYY"); alert(myDate);