From the course: Adobe Captivate: Advanced Actions
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Challenge: Modify the advanced action - Captivate Tutorial
From the course: Adobe Captivate: Advanced Actions
Challenge: Modify the advanced action
- [Instructor] Now that we've got the recipe calculator working, one thing to notice is that if you don't type anything in the box and click Submit, all the ingredient quantities end up at zero. Now, you might think that a solution to this problem would be to return to the Variables window, and then change the number of trays variable so that it has a default value of one. That way, every ingredient is automatically multiplied by one, so at the very least, you get quantities for one tray of dessert. Let's try it out. So I won't type anything in, and press Submit, and unfortunately, that didn't work. That's because if the user doesn't type anything in, the number of trays variable is overwritten with a zero when the user clicks the Submit button. So how would you modify the advanced action to handle the use case where the user doesn't type anything in? So what we want is if the user doesn't type anything in, just display…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.