Forum Discussion

CatchMe's avatar
CatchMe
Community Member
3 years ago

Enabling submit button manually_Multiple Answers Quiz

Hi,

I want to create submit button manually (Do not use Storyline default button). The initial state of ‘Submit’ button should be disabled. Once the user selects any two options, the button becomes normal. However, if the person selects more/less than two options, the ‘Submit’ button remains disabled.

Looking forward to your answers. It would be really appreciable if you provide step by step guide.

 

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    Set up two variables; one True/False and one numeric. The True/False variable that is toggled whenever an option is clicked. Based on this changing variable, reset the numeric variable to zero and then +1 for every option that is in the Selected state. If the numeric variable=2 then enable Submit. f the numeric variable <>2 then disable Submit. 

    • CatchMe's avatar
      CatchMe
      Community Member

      Thank you for your great answer, Michael. The method works fine.. Thanks again...