Question T15577
Visible to All Users

Migrate to Creator v2

created a year ago (modified a year ago)

Hello

We are trying to migrate our angular application from SurveyJs v1 to v2 in order to use the new creator version and the available new features.

Find below the configured modules :

Code
"survey-angular": "^1.9.20", "survey-core": "^1.9.20", "survey-creator-angular": "^1.9.117", "survey-creator-core": "^1.9.20", "survey-creator-knockout": "^1.9.20", "survey-knockout-ui": "^1.9.20", "survey-pdf": "^1.9.20", "surveyjs-widgets": "^1.9.20",

Our code compiles with no error, but we have some runtime issues that we are trying to resolve, so we need your help about the configured modules, are we using the right ones? to get the latest clean version of both Creator and form ? (using angular v14 and nodejs v16)

Another question, how can we activate our commercial licence? in the old version we did it via the property "haveCommercialLicense" of the Creator JSON options, but we did not find it in the new version, in the interface ICreatorOptions?

Big thanks

Answers approved by surveyjs Support

created a year ago

Hello,
Thank you for reaching out to us. Please follow this guide to learn how to integrate Survey Creator V2 into an Angular v14 application: Add Survey Creator / Form Builder to an Angular Application. You can also review Survey Creator online demos.

In particular, you need to update the npm package list and keep only these packages:

JSON
"survey-core": "^1.9.117", "survey-creator-angular": "^1.9.117", "survey-creator-core": "^1.9.117", "survey-angular-ui": "^1.9.117", "survey-pdf": "^1.9.117", "surveyjs-widgets": "^1.9.117",

Plus, the version of SurveyJS libraries should be the same. However, to use the latest version of a Survey Creator, you'll need to upgrade your license. The license renewal option is available within the License Manager section of a master account.

We upgraded our licensing mechanism. Now, the haveCommercialLicense key is no longer used. Once you upgrade the license, you'll receive your personal license key and instructions on how to and activate your license key.

Should you have any further questions, please contact us at any time.

Thanks,
Jane
The SurveyJS team

    Show previous comments (1)

      You're always welcome. Please let us know if you have any further questions.

        Hello again :)

        How can I change the locale at runtime for the Creator? I have an angular wrapper component that loads the creator, it has as input a property called "language" that can be changed in the application at runtime (without reloading the page), I tried this:

        Code
        editorLocalization.currentLocale = this.defaultLanguage;

        It works at the first time but when I change it at runtime it does not work, is there a method that I have to call to refresh the creator for example? how can I do this?

        Big thanks

          Hello,

          I created a separate ticket on your behalf: T15588: Update the Survey Creator locale at runtime. We placed it in our processing queue and will process it shortly.