Skip to content

goNextPageAutomatic doesn't work if 'html' type of question exists on page #200

Closed
@ryancwalsh

Description

Steps to reproduce:

  1. Create a survey with 2 more pages where each page has 1 multiple choice radio button question.
  2. On the first page, above its question, add a question of 'html' type (which is just a label, essentially).
  3. Set goNextPageAutomatic: true.
  4. Try to answer the first page's question, and it won't proceed.

You can see a sample survey JSON here.

{
            goNextPageAutomatic: true,
            requiredText: "",
            showQuestionNumbers: "off",
            showNavigationButtons: false,
            showProgressBar: "bottom",
            onValueChanged: surveyValueChanged,
            pages: [
                {
                    name: 1,
                    questions: [
                        {
                            type: "html",
                            html: "This quick quiz will help you cure your back pain (dynamically adapting based on your responses).",
                            name: "question1"
                        },
                        {
                            type: "radiogroup",
                            choices: [
                                "5: I have the torso of an Olympic athlete.",
                                "4: It feels fine (I don't even think about it).",
                                "3: It bothers me occasionally but usually isn't on my mind.",
                                "2: It often hampers me during various activities that I'd otherwise enjoy.",
                                "1: My back pain prohibits me from MANY activities and seriously disrupts my everyday life.",
                                "0: It's ruining my life."
                            ],
                            isRequired: true,
                            name: "backComfortRating",
                            title: "[From 0 to 5] How strong, flexible, comfortable, and resilient does your back feel nowadays?"
                        }
                    ]
                },
                {
                    name: 2,
                    questions: [
                        {
                            type: "radiogroup",
                            choices: [
                                "Yes",
                                "No"
                            ],
                            isRequired: true,
                            name: "visitedDoctor",
                            title: "And have you been examined by a licensed health professional?"
                        }
                    ]
                },
                {
                    name: 3,
                    questions: [
                        {
                            title: "When you followed their recommendations, what happened?",
                            name: 'x',
                            type: "radiogroup",
                            visibleIf: "{visitedDoctor}='Yes'",
                            choices: [
                                "one",
                                {
                                    value: "two",
                                    text: "second value"
                                },
                                {
                                    value: "three",
                                    text: "third value"
                                }
                            ],
                        },
                        {
                            title: "Why not?",
                            name: "dd",
                            visibleIf: "{visitedDoctor}='No'",
                            type: "radiogroup",
                            choices: [
                                "one",
                                {
                                    value: "two",
                                    text: "second value"
                                },
                                {
                                    value: "three",
                                    text: "third value"
                                }
                            ],
                            hasOther: true,
                            otherText: "Other (specify here)",
                        }
                    ]
                },
                {
                    name: 4,
                    questions: [
                        {
                            type: "radiogroup",
                            choices: [
                                "Yes",
                                "No"
                            ],
                            isRequired: true,
                            name: "xxx",
                            title: "(OPTIONAL) One last optional question before I give you something wonderful. What have your physical symptoms been like, and what have they prevented you from achieving in your life? (What will you enjoy doing once you feel better than ever?)"
                        }
                    ]
                },
            ],
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions