Expand my Community achievements bar.

Validate Feilds

Avatar

Former Community Member

Hi

I have script validating blank fields (Which are mandatory)

I'm using this script

I've attached this to click action of validate button

if(ApplicantForm.ApplicantInfoForm.companyName.rawValue== null){
             ApplicantForm.ApplicantInfoForm.companyName.mandatory="error";
        }

This works fine if user doesn't fill and click on validate I can see the text field with red border.

if the user go back and fill this field, and validate doesn't remove the red border.

Can somebody help me

thanks

0 Replies