From the course: Adobe Captivate: Advanced Actions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Modify the advanced action

Solution: Modify the advanced action - Captivate Tutorial

From the course: Adobe Captivate: Advanced Actions

Start my 1-month free trial

Solution: Modify the advanced action

- [Instructor] Now that you've taken the time to modify the advanced action, I wanted to share one way you could solve this challenge. My approach was to add a conditional to the advanced action attached to the text input box. So what I did was use another tab, you can see that I've named it If. And here we check to see if number of trays is equal to zero, which means the user didn't type anything into the text entry box, they just clicked submit. If number of trays is equal to zero, then I overwrite or assign the value of number of trays with one so at least we can always assume one tray. After this check is performed, the advanced action goes on to perform everything on the second tab, which has the calculations that we created earlier. So let's go ahead and preview the project. And if I click the submit button without typing anything in, we get the quantities for one tray of dessert.

Contents