-
Notifications
You must be signed in to change notification settings - Fork 41
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
SurveyVue.Model doesn't update "completedHTML" #16
Comments
You needn't to re-create new model to change it properties. You can do it via API: var survey = new Survey.Model(json);
survey.completedHtml = "Changed completedHtml"; Here is the working sample - https://plnkr.co/edit/clzdtZYmrP8QETC7 Another point is that you want to change complete message after survey has been completed. At this moment the |
Thanks for the answer! |
If you want to show the same survey, you can use the survey.clear(true, true); code. If you want to create completely new survey, then yes survey = new Survey.Model(newJson); |
But using this: survey = new Survey.Model(newJson); This doesn't create a completely new json model, because the completedHtml doesn't update.
|
Completed survey has finished it's lifecycle. You can either re-run it using the |
Any changes in a complete page should be done before survey completed. Can you share your business case - what do you want to achieve? |
I want to achieve that a vue component re-create a survey if creator/builder json changes (a very similar behaviour to what happens with the "Test survey" tab). My main problem is that I can manage to re-create the entire survey (using this.survey = new Survey.Model(newJson);), but for some reason when I submit the survey the final message doesn't change (it remains with the previous value). In short, I want to do a "Test survey" (re-create current survey) tab but in a vue component. |
Hi, I have an issue when I try to change the model of a survey using a click event (on a button).
The component's data:
And I also have a button that change the survey model
The bug occurs when I complete the survey and then click to "Change survey json22" button, the question changes but the completedHTML continues with the previous value "completedHTML json1" that should be "completedHTML json2".
Is it ok to use this.survey = new SurveyVue.Model(this.json2) to change the model of a survey?
Full source code:
Summary
The text was updated successfully, but these errors were encountered: