Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit The Form #22

Open
tabeshR opened this issue Jul 26, 2020 · 2 comments
Open

Edit The Form #22

tabeshR opened this issue Jul 26, 2020 · 2 comments
Labels

Comments

@tabeshR
Copy link

tabeshR commented Jul 26, 2020

Hi
I want to edit the form after I created it
I Should Pass It To Form Creator And Then Edit It,
How Can I Do That ?

@tsv2013
Copy link
Member

tsv2013 commented Jul 26, 2020

You can get designed survey JSON from the SurveyJS Creator via the "creator.JSON" property and create a new survey model with this JSON

@tsv2013
Copy link
Member

tsv2013 commented Jul 27, 2020

All code can be found in this repo

// You can get designed survey JSON from the SurveyJS Creator via the "creator.JSON" property
var surveyJSON = creator.JSON;
....
    // create a new survey model with this JSON
    var survey = new Survey.Model(surveyJSON);
    return (
        <Survey.Survey model={survey} />
    );

https://github.com/surveyjs/surveyjs_react_quickstart/blob/master/src/Survey.js#L55-L64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants