Skip to content
Snippets Groups Projects
Commit a86a3ad5 authored by Anthony's avatar Anthony
Browse files

Hide disabled checkboxes

parent 8412cdb1
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input {
// ***********************************
// Hide disabled checkboxes in some quizz
// ***********************************
[data-name="pg665"] {
.hide-disabled-checkboxes {
.sd-checkbox--readonly {
span.sd-checkbox__decorator {
display: none;
......
......@@ -63,9 +63,14 @@ $(function () {
});
survey.onAfterRenderQuestion.add((survey, options) => {
if (options.question.customFormat && options.question.customFormat === "one_line") {
if (options.question.customFormat) {
if (options.question.customFormat === "one_line") {
$(options.htmlElement).addClass("one-line");
}
if(options.question.customFormat === "hide_disabled-checkboxes") {
$(options.htmlElement).addClass("hide-disabled-checkboxes");
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment