• Resolved jscheytt

    (@jscheytt)


    Hello,

    when I submit a GoToWebinar form, the registration works fine but the following errors occur:

      1. A JavaScript error is thrown (script.js:411 Cannot read property ‘length’ of undefined (relating to the variable “mailChimpSubscribeIf”)).
      2. The success message is only shown up to the first variable occurence. If e. g. the success message is defined as ‘You successfully registered for the webinar “[Webinar Title]”.’ then the message that is shown is ‘You successfully registered for the webinar’ (note the missing quotation mark). This type of error also occurs for other messages containing other variables.

    Is there some kind of fix for this type of bug?

    Best regards,
    JS

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @jscheytt,

    What browser and version are you using? You can use this link: https://www.whatismybrowser.com

    Thanks,

    Thread Starter jscheytt

    (@jscheytt)

    I can reproduce the bug on Chrome 62.0.3202.75 (64-Bit) and Firefox 56.0.1 (64-Bit).

    Thread Starter jscheytt

    (@jscheytt)

    We are using version 10.0 of the plugin; I will send you an email.

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @jscheytt,

    I have looked into this issue.

    1. Regarding the console error. This error is of no concern and it isn’t breaking any functionality it was just a sloppy bit of coding on my part. I have now released version 10.1 of the plugin though to remove this console error when the form is submitted.

    2. On the second issue, this one I can’t give you the exact answer you are perhaps hoping to hear. But with this issue it’s important if you supply a custom message in the plugin settings, whether that be a success or already registered message that the message doesn’t contain and quotes, single or double ‘ “. If you remove the quotes the shortcodes will work as expected. The reason for this is the custom message is output onto the page via HTML and if you put a single or double quote in the custom message it essentially stops the message right there and then. I am sorry I don’t explain this in the plugin settings where you enter in these messages, but you are the first person to report this haha! The way I have coded this could be improved and if I could do this again I would, but it requires a pretty significant change to how the plugin is constructed and I need to spend my time on new features at the moment.

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Variables in messages not displaying, JS error’ is closed to new replies.