• Resolved elle97

    (@elle97)


    Hi, your plugin is excellent. I enjoyed using it. However, there’s a problem related to the message field. When a user presses Enter key to go new line which is common in these types of fields, and then clicks on send button, a JS error appears, which prevents the form from being submitted and sent to WhatsApp.
    It says:

    VM8330:1 Uncaught (in promise) SyntaxError: Unexpected token 
     in JSON at position 99
        at JSON.parse (<anonymous>)
        at HTMLFormElement.handleSubmit (frontend.js:63:30)
        at HTMLDocument.dispatch (jquery.min.js?ver=3.6.0:2:43064)
        at v.handle (jquery.min.js?ver=3.6.0:2:41048)

    the line 63 is :
    const form_data = JSON.parse('{"' + decodeURI(form_serialized_data).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}');

    I have another issue with your product. I want to remove email from the form. I use the filter you provided, and it successfully deletes the email field from the form, but in Whatsapp, it still exists. I tried to change the array for setting in the class.app.php file and changed the value of defined_preset but nothing happened. In addition, please add an option to localize and translate WhatsApp preset.

    • This topic was modified 2 years, 5 months ago by elle97.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Thank you for your nice catch. We also got the JS error issue and sent it to the developer team. Hopefully, it will be fixed as quickly as possible with the next release.

    The second point about the custom field is; It can be a great feature as well. We have added to the backlog and we will work on it in the near future.

    Thanks a ton for being with us. Have a wonderful day!

    Regards,
    WPPOOL

    Hi @elle97,

    We appreciate your endurance. Your indicated JS issue has been resolved, and the plugin has been updated. So please feel free to use it on your website and take advantage of the plugin.

    Thanks a ton for being with us.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS problem related to message field’ is closed to new replies.