
Updated the repository with the final 1.4 version. See top post for changes
Thanks, Toby! What do you know? I’m getting my form to show up and process!

<input name="first_name" id="first_name" size="30" title="Please enter your first name." value=/>
... <option value="United States"selected='selected'/>United States</option> ...
<?php
function testing(&$fields)
{
$fields[from]='[email protected]';
return;
}
?>
<?php
function form2db( &$fields ){
//rest of function code as above
$fields[first_name]='ted';
return true;
}
//return empty string
return '';
?>
Per the updated eForm, my Chunk does not contain any placeholders (e.g. [+email+])
1. If I submit an incomplete form, the values to be stored within their respective elements are coming through as "/" ...
So, even if I enter a value of, say, ’12345’ for my Name, it comes through as / instead of my name... however, if I submit a complete form (valid email, etc.) the proper values are being sent in the email.
e.g.
<input name="first_name" id="first_name" size="30" title="Please enter your first name." value=/>
My problem is solved - I had left
<?php
?>
in the snippet instead of taking them out.
gid => isset($gotoid)? $gotoid:$modx->documentIdentifier, ...
value="[+phx:userinfo=`username`+]"
$pid = $modx->getLoginUserID(); $data = $modx->getUserInfo($pid); return $data['fullname'];
value="[[GetUserName]]"
This discussion is closed to further replies. Keep calm and carry on.