Submit button enable disable in MCMS question

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?

Discussion (3)

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.

undefined

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

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?

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

Discussions have been disabled for this post