Question T5962
Visible to All Users

Hiding navigation buttons

created 4 years ago

Hello.
The project is a 'one pager' with a 'start' page. For the 'one pager', no navigation is necessary (Survey.showNavigationButtons: none).

With that property set the 'Start' button is not shown on the 'start' page. Logical (it is a navigation 'device'), but to expose it, all navigation buttons are exposed. The Survey.showPrevButton is a partial answer but I think all navigation 'devices' should have a 'visibility' property.

Now, I will code a function to set Survey.showNavigationButtons from the 'onStarted' event to 'hack' this but kindly consider my suggestion.

Met vriendelijk groeten,
Max

Answers approved by surveyjs Support

created 4 years ago

Hello,

First of all I'd like to say thank you for your valuable feedback.

Right now unfortunately SurveyJS Library doesn't have such an option and we recommend our users to create own custom navigation. It's 10-20 lines of code indeed - https://surveyjs.io/Examples/Library?id=navigation-custom
But we'll keep your suggestion in mind.

Thanks, Serge
SurveyJS Team

    Comments (1)

      Hello.
      For removing the navigation 'devices' from a 'one pager' AFTER the 'start' page and 'firstPageIsStarted: true,':

      survey
      .onStarted.add(function(_survey) {
      _survey.showNavigationButtons = "none";
      _survey.title = "Testing locale selection…";
      });

      (one line of code ;)

      Met vriendelijk groeten.

      From: Serge T [surveyjs Support]
      Sent: Tuesday, December 22, 2020 1:26 PM
      To: d04105641@inbox.lv
      Subject: RE: Hiding navigation buttons [T5962]