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
910 stars 372 forks source link

Is there a way to make sure only 1 person edits the survey at one time to prevent overriding of data? #2202

Open Lionqueen94 opened 2 years ago

Lionqueen94 commented 2 years ago

Are you requesting a feature, reporting a bug or asking a question?

Asking a question

What is your question?

Is there a way to make sure only 1 person edits the survey at one time to prevent overriding of data? Or do you have any tips or ideas on how to potentially manage this.

Specify your

andrewtelnov commented 2 years ago

@Lionqueen94 I beleive you are talking about SurveyJS Creator here and you are talking about editing survey definition. We do not have built-in functionality to prevent this. We can add collaboration functinality in the future (merge survey changes done in another session on client level. This changes should come from the server of course. However, we do not have this functionality yet.

The functionality you are talking about, should be done on the server level. If you want to prevent the survey being edited by another user or from another session, you have to implement this functionality by yourself. SurveyJS Creator as a client JavaScript library can't do it. Here is the integration with backend doc that can be useful.

Thank you, Andrew