Question T16114
Visible to All Users

How to hide Complete button from Survey Preview Tab.

created 2 years ago

HI Jane,

Good day to you.

Could you help me how to hide the complete button from Preview Tab?

looking for you support.

Best Regards,
Shubham Sharma.

Answers approved by surveyjs Support

created 2 years ago

Hello Shubham,
Please review this example.
You need to turn off the complete button as the following:

JavaScript
creator.onSurveyInstanceCreated.add(function(sender, options) { //If we are creating a surface for "Test Survey" tab if(options.reason == "test") { const completeAction = options.survey.navigationBar.getActionById("sv-nav-complete"); completeAction.visible = false; options.survey.onCurrentPageChanged.add((sender, options) => { completeAction.visible = false; }); } });

Here is the example.

Thank you,
Andrew
SurveyJS Team