In checkStartDate, if a condition failed, I want to highlight two input fields to show that they are errors for those fields. Curently I’m using
$this->addError('start_date', 'Delivery Date and time should be a future date and time.');
but it only applies to stat_date attribute. If the condition failed, the above statement will execute, and because of that, On top of the view it will show the message and the start_date input box will be highlighted in red color.
With this I want ONLY to highlight another field called start_time. Is there a way to do it?