Hello,
Maybe it is something simple, but I'm implementing the new version of survey creator and the save button is always disabled.
I could not find in the documentation how to enable it.
Any tips on that?
Thanks!
Hello,
Maybe it is something simple, but I'm implementing the new version of survey creator and the save button is always disabled.
I could not find in the documentation how to enable it.
Any tips on that?
Thanks!
Hi Fabian,
The Save button gets activated when the current survey receive any change. When a survey remains unchanged, the Save button remains inactive thus indicating no change to save.
I created the following demo for your reference: https://codesandbox.io/s/recursing-farrell-ti16t4?file=/src/SurveyCreatorComponent.jsx:401-596.
Consider this demo code:
const options = { showLogicTab: true, isAutoSave: false }; const creator = new SurveyCreator(options); creator.saveSurveyFunc = (saveNo, callback) => { alert(creator.text); };
To test the Save button, perform any modification to a survey. For instance, drop a question onto a design surface or remove an existing question. Notice that the Save button turns onto an active state. Click the Save button to save a survey; the creator.saveSurveyFunc is raised allowing you to submit changes to a survey storage.
For more details on how to store survey models, refer to the following guide: Save and Load Survey Model Schemas.
Please let me know if you have any questions or require further assistance.