Explore the community Forums Lectora Lectora Questions & Answers is it possible to create everytime a value for clicking on the same button Reply To: is it possible to create everytime a value for clicking on the same button

#422877 Score: 1
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
355 pts
@timk

It should not be too difficult. Create a variable, e.g. “counter”, initial value = 0

Add an action to the Next button above the “Go to: Next page” action:

On: Click
Action: Modify variable
Target: counter
Type: Add to variable
Value: 1

Add a condition to the “Go to: Next page” action:

Only if “counter” equal to 3

Not sure what you want to achieve. You might add another action to the button:

On: Click
Action: Modify variable
Target: counter
Type: Set equal to
Value: 0
Delay: 1 sec

This way the user would have to click fast to reach the next page or start again. Or you probably need another approach to reset the variable, e.g. when the page is shown.

This post has received 1 vote up.