Hello, I have a Wix generated form (form a) that is used to collect information to send to an email. I also have a custom HTML form (form b). Form b is a Moneris form in a custom Html block/iframe, I would like the user to be able to fill a box in “form a” and the value of that box be passed on to “form b’s” input box, then when the user clicks submit in “form a”, I want “form b” to submit button to also be clicked. Right now I was trying to accomplish this by using .postMessage() to pass on a message to “form b” and when form b receives it, it’s supposed to load the .submit() function in order to submit “form b”. Although the message is being passed on from “form a” to “form b” .submit() line is returning an error saying: " has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.".
the first question is: “Does .submit() or .click() functions work on wix?”
second question: “is there a simpler way to achieve what i’m trying to do?”
third question: “what does that error being returned mean and how can I fix it?”