• I am using default values as input labels and have javascript code to remove the value onclick. The problem is that if the user does not click on the field and submits the form, it will validate the default value that I set.

    So… I need to validate to make sure a form does not equal my value and I would like to use SI Contact Form’s error handling.

    something like:
    if ($name = 'My Value') { return false; }

    Just not sure where to put it

    http://ww.wp.xz.cn/extend/plugins/si-contact-form/

Viewing 1 replies (of 1 total)
  • You would have to edit code inside si-contact-form-process.php
    There is a loop that validates all the extra fields starting at line 170
    The code in there is a bit complex, have fun.

    You do not return false, do this…
    trigger the error and set a warning message:

    $this->si_contact_error = 1;
    ${'si_contact_error_ex_field'.$i} = 'Input not in proper format';
Viewing 1 replies (of 1 total)

The topic ‘[Fast Secure Contact Form] Adding Additional Validation’ is closed to new replies.