[Ticket cloned from T3861: Checkbox "Add new" and "Remove all" button enabled if surveujs readony is true]
And its undo and redo also actionable if surveyjs readonly is true
[Ticket cloned from T3861: Checkbox "Add new" and "Remove all" button enabled if surveujs readony is true]
And its undo and redo also actionable if surveyjs readonly is true
I've fixed it via the https://github.com/surveyjs/survey-creator/issues/757. Fix will be available in the next minor update.
creator.readOnly = true;
undo and redo buttons are disabled
Please add some default text (json) that will help you to repro the issue.
try this.
text:
{ "pages": [ { "name": "page1", "elements": [ { "type": "checkbox", "name": "question1", "visible": true, "isRequired": true, "choices": [ "item1", "item2", "item3" ] }, { "type": "radiogroup", "name": "question2", "isRequired": true, "choices": [ "item1", "item2", "item3" ] } ] } ] }
,readOnly:0
If readonly is true then only we can add item from add new button then undo and redo button will enabled.
Thanks! Now I can reproduce the problem and will work on it.