How to Send Website Data to Overlays
If you need to send any data or value from your website to your overlays, you can use two ways.
You need to create a field on your website. That is the source of your data that can be sent to Picreel. The field should look similar to:
There is another way to send values from your website to overlay form, which is done via JS. In this case you need to add "picreel_popup_loaded" event listener on your website.
In the listener you need to create an object that will contain key and value. The key is "id" part of "hidden" field in the overlay form, which is assigned to some value.
API method picreel.api.push('send_data_picreel', data) is responsible for sending the data. Here, data is the previously created object. Picreel development team recommends to send the data before overlay triggers.
After you choose the method, please follow these reccomendations:
When you create an overlay, you need to add "hidden" fields for each element of data object.
Example: If you need to send the value “123” to Picreel overlay, and the id of the field is “test1”, you need to place this line in your Picreel overlay:
The data from website is set in these fields. Please, note that "name" should be identified and can be different from "id".
Do that for any value you need to send -- a field on your website, and the same field in your Picreel overlay. Use Picreel’s HTML editor to modify your overlays.
Data is sent before overlay is displayed.
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please make sure you spelled the page name correctly or use the search box.