[eluser]ardinotow[/eluser]
I have new solution. Instead of declare default value with javascript like I mentioned before, hacking the Validation library is seems to be work.
Open Validation.php where located in system/libraries/Validation.php. In function run() find this line:
Code:
if ( ! isset($_POST[$field]) OR $_POST[$field] == '')
{
continue;
}
Delete 'continue;' or just give double slash on it, here is that line should like:
Code:
if ( ! isset($_POST[$field]) OR $_POST[$field] == '')
{
//continue;
}
Now, whether the field that need custom validation is empty or not your callback function should be executed.
If you think this solution has potential problem or side effect please let me know....