Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Start Page doesn't display the Start button although the navigationButtonsVisibility property is set to "show" #9248

Closed
dinesh-58 opened this issue Jan 2, 2025 · 3 comments · Fixed by #9252
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@dinesh-58
Copy link

Describe the bug
I have hidden the navigation buttons in the survey's settings and then enabled auto advance. I also set the first page as a start page and it seemed auto advance doesn't work for the start page. So I made the navigation buttons visible for the first page to show the Start button. But doing so doesn't show the button. For some reason, if I set the nav buttons visible for the 2nd page, then the Start button shows properly on the start page.

Steps to reproduce

  1. Create a survey
  2. Create at least 2 pages
  3. Go to Survey Settings > Navigation
    a) Ensure Survey Layout is set to "Original structure"
    b) Check "First Page is Start Page" and "Auto advance to next page"
    c) Set Show/Hide Navigation Buttons to "Hidden"
  4. Select the First Page and open its settings.
    • Note: Clicking on a page seems to open the survey settings so you'll have to click on a page twice to open the page's settings
  5. Go to Navigation and set Show/Hide Navigation Buttons to "Visible"
  6. Run or embed the survey, but don't preview it. The start page won't show the start button.
    • Note: previewing the survey shows a different type of start button at the bottom that allows selecting a page. This button isn't shown when embedding the survey
  7. Repeat steps 4-6 for the second page and now the start button will show

Expected behavior
I would like the Start button to be shown. Otherwise, there is no way to start the survey since auto-advance doesn't seem to work on the first page, and neither does the Enter key when the start page has text inputs

Please complete the following information:

  • Browser: firefox
  • Browser version: 133.0.3 (64-bit)
  • JS framework/library: React, although this issue happens in the Creator Preview itself so I don't think this matters
  • SurveyJS version: unsure. This is happening in the free demo for the SurveyJS Creator
  • Device: PC
@dinesh-58
Copy link
Author

I checked the survey's JSON and that seems ok. Survey has "showNavigationButtons": "none" set and the first page has "navigationButtonsVisibility": "show"

@JaneSjs JaneSjs transferred this issue from surveyjs/survey-creator Jan 2, 2025
@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 2, 2025

Hello @dinesh-58,
Thank you for reporting this issue. I forwarded it to our developers for further investigation.

@andrewtelnov Andrew, please take a look at this usage scenario:

  • A survey enables the auto-advance option.
  • The first page is a starting page.
  • Navigation buttons are disabled at the survey's level.
  • Navigation buttons are enabled within the first (the starting) survey page.

Issue:

  • The Start button doesn't appear in the first survey page.
  • The auto-advance option doesn't work for the starting (the first) page.
    As a result, it is impossible to start a survey.
{
  "pages": [
    {
      "name": "page1",
      "navigationButtonsVisibility": "show",
      "elements": [
        {
          "type": "text",
          "name": "question1",
          "title": "User Name"
        }
      ]
    },
    {
      "name": "page2",
      "elements": [
        {
          "type": "radiogroup",
          "name": "question2",
          "choices": [
            "Item 1",
            "Item 2",
            "Item 3"
          ]
        }
      ]
    },
    {
      "name": "page3",
      "elements": [
        {
          "type": "radiogroup",
          "name": "question3",
          "choices": [
            "Item 1",
            "Item 2",
            "Item 3"
          ]
        }
      ]
    },
    {
      "name": "page4",
      "elements": [
        {
          "type": "radiogroup",
          "name": "question4",
          "choices": [
            "Item 1",
            "Item 2",
            "Item 3"
          ]
        }
      ]
    }
  ],
  "showNavigationButtons": "none",
  "goNextPageAutomatic": true,
  "firstPageIsStarted": true
}

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jan 2, 2025
@andrewtelnov andrewtelnov self-assigned this Jan 2, 2025
andrewtelnov added a commit that referenced this issue Jan 2, 2025
@andrewtelnov
Copy link
Member

@dinesh-58 The PR above will fix the issue.

Thank you,
Andrew

@tsv2013 tsv2013 closed this as completed in 52b1df8 Jan 3, 2025
@RomanTsukanov RomanTsukanov changed the title Navigation button visibility for start page is only overridden if next page has visibility set as well The Start Page doesn't display the Start button although the navigationButtonsVisibility property is set to "show" Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants