Explore the community Forums Lectora Lectora Questions & Answers Buttons/feedback that remain in pressed/activated state? Reply To: Buttons/feedback that remain in pressed/activated state?

#412482 Score: 0
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

Alright, but you edited the question after I clicked “Reply” 😉

Of course the HTML page is in its initial state whenever it’s opened. If you want to save changes you’ll need variables and repeat relevant actions. The question has a variable that will stay unchanged while the user is away from the page (unless you reset either test or question). To keep the feedback visible when a user returns to the page you’ll have to re-process the question with two actions:

On: Show
Action: Show
Target: Incorrect Feedback

If Question_0001 is not correct
If Question_0001 is not empty

On: Show
Action: Show
Target: Correct Feedback

If Question_0001 is correct

When a user comes to the page for the first time the question is empty and not correct, i.e. no feedback will be shown. But when a user returns, the question is not empty and either correct or not.