I’ve got it working, but it doesn’t return to the sidebar form - which is what I was expecting.
I tried recalling the Chunk via &thankyou=`chunkname` (where chunkname is the same as the current chunk name which is a EForm call), but that only outputted the Eform call but did not execute it.
I tried calling a chunk via &thankyou and then made the thankyou page call the Eform. This had the same effect as above.
In the end I just made the form disappear and the thank you page disappear. Which’ll do for now....
But assuming that my client wants the sidebar form to return upon form submission, how do I get it back?
Here’s what I’ve done so far;
// added the following line into the Eform snippet under 'thankyou' part
'usethankyou' => isset($usethankyou)? $usethankyou:1,
// changed the return $_lang['ef_thankyou_message']; in "eform.inc.php" to the following;
if (!isset($usethankyou)) $usethankyou=1;
if($usethankyou==1){
return $_lang['ef_thankyou_message'];
} else {
return '';
} // end if