Explore the community Forums Lectora Lectora Questions & Answers Submit button enable disable in MCMS question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #294755 Score: 0
    Profile photo of Akash Jambhorkar
    Akash Jambhorkar
    Member
    beginner
    intermediate
    curious george
    contributor
    wise owl
    1 pt
    @Akash Jambhorkar

    Hello,

    I have created custom multiple choice multiple select question and activity have submit button. But submit button disable state from start. What I want when user select any checkbox then only submit button change disable to enable state (normal) and when user uncheck all checkbox’s then again submit button goes to disable state. How to achieve this type of functionality in lectora 11?

    #294820 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    333 pts
    @ssneg

    It’s pretty easy.

    1. Create a checkbox, a button and a variable called “button_state” (default value “disabled”).

    2. Add two conditional actions to the checkbox:

    a) On Change/Select – Set Button state to Enabled – IF “button_state” is “disabled” – ELSE Set Button state to Enabled

    b) On Change/Select – Modify variable to “enabled” – IF “button_state” is “disabled” – ELSE Modify variable to “disabled”

    3. Add one simple action to the button:

    On Show – Set Button state to Disabled.

     

    That’s it. Now you have a button that’s disabled by default and a checkbox that enables/disables said button when checked/unchecked.

     

    I even attached a sample title (v12.1)! Enjoy 🙂

    Attachments:
    1. Title_8.zip
    #295499 Score: 0
    Profile photo of Akash Jambhorkar
    Akash Jambhorkar
    Member
    beginner
    intermediate
    curious george
    contributor
    wise owl
    1 pt
    @Akash Jambhorkar

    Hi Sergey Snegirev,
    I am using lectora 11 for my project. So I am using two different button images one for normal and one for disable state.
    That’s why it’s not work for me.
    Please guide me if any solution for lectora 11?

    #295533 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    333 pts
    @ssneg

    Apply the same logic, only instead the action of disabling/enabling the button, create actions that show and hide your enabled/disabled state images.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.