Embedding an ACS Form on external page via iframe that can preload visitor data
Good afternoon!
I'm working to build out a survey experience that leverages an ACS Landing Page containing a survey form embedded in an AEM page via iframe. The properties of the landing are set to preload visitor data. We'll be deploying the link to the external page via email from ACS.
In my first attempt to get this completed, the iframed form doesn't not preload the data.
Here are a couple observations I made:
1. When accessing the LP directly from an email button programmed to send the visitor to the ACS hosted LP, two things occur. The pkey is put into the URL and a <script> is run fetching the user data. When accessing the external page with the iframed LP, the pkey does NOT populate in the URL when the visitor clicks the button programed with the external pages URL. Also, when inspecting the console of the external page, that injected <script> is also not running.
-- I tried just putting the script into the iframe HTML and that didn't work.
2. I've added web parameters tot he brand configuration to capture pKey in the URL, thinking that may help. Oddly, not only did it not help, but the "pkey" had a different value than the web parameter "pKey".
Based on a previous post, this seems like a possible approach leveraging the ACS LP Form in an external page.
What needs to be done in order to accomplish this use case? What LP properties are needed? What additional scripts or code need to be added to the iframe?
Thanks in advance!
@somasundaram_h @bisswang @el_loco
CD