Explore the community Forums Lectora Online Lectora Online Questions & Answers set state of several buttons with one action?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #446451 Score: 0
    Profile photo of Mélisande Buitenkamp
    Mélisande Buitenkamp
    curious george
    picture perfect
    wise owl


    Would it be possible to set the state of nine buttons at once if their corresponding variable contains a certain value?
    Something like

    for var1 – var9
    if value = “seen”
    set state button1 – button9 disabled

    (yes, I know this is gibberish coding 😉 )

    The way I have it now is nine On Show Set State actions…



    #446484 Score: 0
    Profile photo of Joe Wieloch
    Joe Wieloch
    friend finder
    LUC16 Attendee
    verified member
    wise owl
    LUC17 Attendee
    picture perfect
    69 pts

    You would need to setup an action “group”, by putting actions inside a group object.

    You would need one action for each set state action which would be setup to conditionally execute.

    Then you can run the action group with one action.

    (so simple answer no, not at this time unless you write some scripting to do this)

    We have talked about adding multiple targets to some actions. The conditional per button based on variables would still be an issue. Thanks for posting we will consider this use case for future enhancements.

    • This reply was modified 3 months ago by Profile photo of Joe Wieloch Joe Wieloch.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.