I have used the below code to make a textbox Required based on a scenario.
array(‘method’, ‘validateRequiredFields’),
The problem here is, it is showing me the error message as you can see in the attached screenshot. but unfortunately it isn’t highliting the text box in red color which its doing if i use the default validator. like below,