Question T1150
Visible to All Users

Disable button if required not compiled

created 6 years ago (modified 6 years ago)

Hello,
Is there a way to disable to button until the answers are filled, or a class to detect if the button is 'active', to trigger some actions?
thanks
Giu

Comments (2)
DK DK
Dmitry Kurmanov 6 years ago

    Hello! Could you please describe your use case in greater details?

    For example you can use validations to prevent completing the survey or going to the next page https://surveyjs.io/Examples/Library/?id=validators-standard&platform=jQuery&theme=default

    Or you can use onValueChanged event to do something what you need https://surveyjs.io/Documentation/Library/?id=surveymodel#onValueChanged

      I have a single page Survey, 2 RadioButton questions (each with 3 answers possible), a Confirm button.
      I would like to detect when the questions are properly filled to trigger a redirection when the button is clicked, only if the questions are filled obviously.
      I'll check the documentation, thanks!

      Answers approved by surveyjs Support

      created 6 years ago

      Hello,
      Additionally to Dmitry suggestion. Here is the example of custom navigation: https://surveyjs.io/Examples/Library/?id=survey-customnavigation. You may hide default navigation buttons and display your own as you wish.

      Thank you,
      Andrew
      SurveyJS Team