Hello,
I have a question for you gurus... What would be the best way to pass a value/parameter from a document to another document which contains a eform and then set a field within eform to that value. I hope I make myself understood...
Thanks for your help
-
☆ A M B ☆
- 24,524 Posts
Probably use the SESSION array, and a custom snippet using an eForm event to load the data into the $fields array.
-
☆ A M B ☆
- 24,524 Posts
I’ve read that bit of documentation innumerable times, and that just didn’t register. Very useful to know; I won’t forget about it again!
Thanks all for your valuable help...
-
☆ A M B ☆
- 24,524 Posts
You do not need a snippet to read the SESSION var (once the SESSION has been set), eForm has built in feature to create placeholders from selected session vars:
Just looking though the eform code, and saw that I’m the one that wrote the code to add the session variables to the $fields array! I’d completely forgotten about that
LOL. That tops my common experience of searching the forums looking for a solution to a problem and finding it in one of my own posts.