Question T1784
Visible to All Users

Getting Property Value from Objects

created 6 years ago

Hi Survey JS Team,

We have successfully added a custom property called externalPageToOpen to the Survey Builder. It works great and we see the property added to the Survey Builder JSON:

Here’s the JSON:

However, we are unable to retrieve the property from the Survey form (the form where the response is received). We have tried the following:

Notice how in the Watch, we see the externalPageToOpen property in the propertyHash object. However, survey.externalPageToOpen returns undefined and survey.getPropertyValue(“externalPageToOpen”) returns undefined as well. Also, please notice how the out of the box property “startSurveyText” is retrievable using survey.startSurveyText but not with survey.getPropertyValue(“startSurveyText”).

Please advise. We are using v1.0.68.

Thanks,
Saswat Gorkhali | CRM Consultant | Office: 612.339.3355 x532 | Email:
POYGlobal_EmailSignature

::DISCLAIMER::
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Comments (2)

    Hello,

    May be you forgot to add custom property to Survey's metadata.
    Here is the live sample https://plnkr.co/edit/SnCnDcVvHGwGx6PcmQSk?p=preview.

    Thank you,
    Dmitriy
    SurveyJS Team

    SG SG
    saswat.gorkhali 6 years ago

      Thanks. This made it work.