We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6efb4f commit 6606c63Copy full SHA for 6606c63
blogpost-apps/nextjs-form-builder/src/components/FormBuilder.tsx
@@ -32,7 +32,8 @@ addCustomTheme(creatorTheme, 'Custom Theme');
32
33
const defaultCreatorOptions: ICreatorOptions = {
34
showTranslationTab: true,
35
- showThemeTab: true
+ showThemeTab: true,
36
+ autoSaveEnabled: true
37
};
38
39
export default function FormBuilderComponent(props: {
@@ -45,7 +46,6 @@ export default function FormBuilderComponent(props: {
45
46
if (!creatorRef.current) {
47
const creator = new SurveyCreator(props.options || defaultCreatorOptions);
48
- creator.autoSaveEnabled = true;
49
creator.saveSurveyFunc = (
50
no: number,
51
callback: (no: number, success: boolean) => void
0 commit comments