I am faced with the challenge of embedding an iframe form from a web application that I use onto my website. This custom inquiry form is integrated into my diary within the web app, and now I want it to be displayed on my main website while maintaining a consistent style.
Currently, when embedded in an iframe on my website, the form does not match the aesthetic of the rest of my website. My plan is to incorporate the form into my existing "contact us" section, which already has the desired styling in place. This way, I can hide the iframe form, expand my current contact us form, and ensure both forms look cohesive.
To streamline the process, I intend to extract the text entered in the "firstName" field of my contact us form and populate the corresponding field in the iframe form.
This approach may seem like a workaround, but it appears to be the most straightforward solution. Nevertheless, I am facing difficulty with JavaScript preventing me from accessing data within the iframe due to its source being a different website where the form is hosted.
Is there a practical method I could employ to achieve this integration, or should I opt for manually styling the form to match my website's design?
I would greatly appreciate any guidance or assistance provided. Thank you.