diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/layout/views/settings.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/layout/views/settings.js
index f4bad5ccb33f..c9285dec04e9 100644
--- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/layout/views/settings.js
+++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/layout/views/settings.js
@@ -7,7 +7,7 @@ hqDefine("cloudcare/js/formplayer/layout/views/settings", [
'cloudcare/js/formplayer/apps/api',
'cloudcare/js/formplayer/users/models',
'cloudcare/js/formplayer/utils/utils',
- 'bootstrap-switch/dist/js/bootstrap-switch', // bootstrapSwitch
+ 'bootstrap-switch/dist/js/bootstrap-switch', // bootstrapSwitch: only when window.USE_BOOTSTRAP5 is false
], function (
$,
_,
@@ -70,10 +70,12 @@ hqDefine("cloudcare/js/formplayer/layout/views/settings", [
'switchChange.bootstrapSwitch @ui.oneQuestionPerScreen': 'onChangeOneQuestionPerScreen',
},
onRender: function () {
- this.ui.oneQuestionPerScreen.bootstrapSwitch(
- 'state',
- this.currentUser.displayOptions.oneQuestionPerScreen
- );
+ if (!window.USE_BOOTSTRAP5) {
+ this.ui.oneQuestionPerScreen.bootstrapSwitch(
+ 'state',
+ this.currentUser.displayOptions.oneQuestionPerScreen
+ );
+ }
},
onChangeOneQuestionPerScreen: function (e, switchValue) {
this.currentUser.displayOptions.oneQuestionPerScreen = switchValue;
diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html b/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html
index 494fc0772095..2599026a2580 100644
--- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html
+++ b/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html
@@ -35,8 +35,6 @@
{% block css %}{% endblock %}
-
Settings