Using the eFormOnBeforeFormParse event, something like this should do it:
In your form template add placeholders for the values of the name and email fields:template
<label>Name:</label><input name="name" type="text" eform="Your name::1:" value="[+full_name+]" />
<label>Email:</label><input name="email" type="text" eform="Email:email:1:" value="[+user_email+]" />
Create a new snippet (let’s say you call it ’efWebUserFunction’) and add this function :
//<?php
if( !function_exists('efOnBeforeParseFunction') ){
function efOnBeforeParseFunction(&$fields,&$templates){
if($_SESSION['webValidated'] ){ //web user logged in?
$templates['tpl'] = str_replace('[+full_name+]',$_SESSION['webFullname'],$templates['tpl']);
$templates['tpl'] = str_replace('[+user_email+]',$_SESSION['webEmail'],$templates['tpl']);
}
return true;
}
}
Now in your document add this snippet before your eform call and add the event parameter...
[[efWebUserFunction]]
[!eForm? &eFormOnBeforeFormParse=`efOnBeforeParseFunction` ...all your other params...!]
That should do it...