Issue with Displayed JavaScript Code in Web-to-Lead Form

Hello SuiteCRM Community,

I’m hoping to find some assistance here for a specific issue with my Web-to-Lead form. I’ve successfully created a Web-to-Lead form in SuiteCRM. While the functionality of the form works as expected, there’s an unusual issue: a portion of the JavaScript code is being displayed directly on the form.

To clarify, the form collects and submits data correctly, but the visible JavaScript code significantly detracts from the user experience. The displayed code pertains to the sections for validation and form submission. Here are some details:

  • The JavaScript code is visibly present on the page, instead of being executed in the background.
  • This problem appears across different browsers.
  • in the web2lead Form there is not scriptcode

I would greatly appreciate any suggestions for resolving this issue. Has anyone had similar experiences or knows a solution to prevent the JavaScript code from being displayed on the form?

Thank you in advance for your support and advice.

Best regards, Wolfgang

Any screenshots? Or screen recording?

Nevermind, I see you solved it the German speakers area

Clearly, this bug, open for some time on github, must be solved, because SuiteCRM is generating faulty web2lead forms, without the <script> html tag!

1 Like

Hi Chris,
Thank you. I found the failure - now its running.

Greetings
Wolfgang

1 Like