surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
899 stars 370 forks source link

Users cannot view a correct answer when Survey Creator is in read-only mode #3957

Closed JaneSjs closed 1 year ago

JaneSjs commented 1 year ago

T12631 - Need ability to view correct answer when Survey Creator is in read-only mode https://surveyjs.answerdesk.io/internal/ticket/details/T12631

Example Issue: in read-only mode, it is impossible to view a question's correct answer.

Suggestion: allow users to view correct answers in read-only mode of a survey creator. For instance, activate a link which brings up a correct answer popup, but without an option to edit the answer. image image

andrewtelnov commented 1 year ago

@mikeamelin We need the third state for link property editor: "empty", "has value" and "read-only" If it is read-only we need to change "Set default value" to "Default value" and show the value. If there is no enough space for it, then the full value will be shown in tooltip.

Thank you, Andrew

mikeamelin commented 1 year ago

I think this way is good enough. Please pay attention on actions in the popup.

Only one thing... I'm not too happy with read-only mode. Now it looks like disabled. But it is another story.

Image