Validation error highlighting

Hi again,

I found a solution, my fields are correctly highlighted IF I set an error message for the validation (on the element)... I'm just gonna add an error message for every element and the problem is solved.

Thanks for your time Sophist, I'll like your last post as a thanks for all you've done.

kinkaz
 
According to this code in getMessage method in validation_rule.php around line 112:

PHP:
public function getMessage() {
    if (isset($this->errorMsg))
    {
        return $this->errorMsg;
    }
    $params = $this->getParams();
    $v = $params->get($this->pluginName . '-message');
    if ($v === '')
    {
        $v = 'COM_FABRIK_FAILED_VALIDATION';
    }
    $this->errorMsg = JText::_($v);
    return $this->errorMsg;
}
if message is left blank then it should use a default failed validation message.

If I get the time, I will try to debug this.

S
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top