JIT
Create a javascript widget to embed form content from a URL
write javascript widget code that can call the form content from this url = https://radiance.al/forms/contatti/index.html and it can be embed easily on any html element in a page

Here's a JavaScript widget that can embed the form content from the specified URL into any HTML element:

To use this widget:

  1. Include the form-embed-widget.js file in your page
  2. Create a container element where the form should appear
  3. Initialize the widget with the target element

The widget handles:

  • Loading states
  • Error handling
  • Fixing relative URLs in the loaded content
  • Basic styling for loading/error states
Updated files
v1
is not working. Can write a working solution?