I do have 1.4.4.5 installed.
Eol. I’ll give your suggestion a try, where would the code "global $modx...." go exactly?
I attempted to put the code into eform.inc.php - yet still no initial values will appear in the text fields. *shakes head*
Thanks for the help so far, but I’m still totally lost on how something this simple is so difficult.
? eform.inc.php
global $modx;
$postback = (count($_POST)>0 && $fields['formid'] == $modx->event->params['formid']) ? true : false;
if (!$postback) {
$fields['name'] = "Please enter your full name";
}
? In my chunk
<div class="medium">
<p> <input type="text" name="name" value="[+fieldname_default+]" size="34" eform="Your Name::1:Expected at least two words:#REGEX /^\w+\s\w+/i" /></p>
</div>
Net HTML result:
<form method="post" action="index.php?id=7">
<input type="hidden" name="formid" value="contactform" />
<div class="medium">
<p> <input type="text" name="name" size="34" value="" /></p>
</div>
<div class="medium">
<p> <input type="text" name="email" size="34" value="" /></p>
</div>
<div class="medium">
<p><input type="text" name="department" size="34" value="" /></p>
</div>
<div id="message"">
<p><textarea cols="74" rows="11" name="comments" ></textarea></p>