While using a custom form theme allows you to insert JavaScript, you can also achieve this with a form field called “HTML Area”. That field provides you with the flexibility to include scripts and other HTML elements.
I hope you find this information helpful and that it assists you with your problem!
I am looking for exactly such a solution to “capture” the URL of the page where the user completed the form or “capturing” form’s page name.
@jeckel
Were you able to solve the problem?
Will you share your solution?
I assume that this code should be added to the form by creating a new “HTML area” field and inserting the code there?
I tested it and unfortunately it doesn’t work
Or should this code be placed with the code of the form inserted on the page?