1779 Posts in 582 Topics by 556 members
|Go to End|
11 November 2010 at 1:29pm
i try to add a custom form-validation message for "Email is already in use" to a Form. Validation works fine with the following code, but the message does not appear at the correct place(next to the Field OverwriteEmail) but below all the form Fields on the bottom of the form. What did i do wrong?
thanks in advance for your help!
$existingMember = DataObject::get_one('Customer',"Email = '".$data['OverwriteEmail']."'");
'Sorry, that email address already exists. Please choose another.'
19 May 2011 at 11:43pm
I think this is somewhat related to this thread [solved] Passing Errors to Custom Form
|Go to Top|