Is there any css identifier for the empty input fields in vflow

I want to highlight all the empty input fields in a form. is there any css selector which i can use to style those element.

9 Likes

@Nikhil.Dhanda @ShraddhaDhoke Could you please answer?

2 Likes

No, Its not possible as of now.

By default when you fill a form and clicks on the mandatory field and then clears it …In that case, the empty field highlights into red colour as invalid.

As shown below -

48 Likes

Thanks @Nikhil.Dhanda

3 Likes

Also, if you want to highlight the empty fields only on the opening of form, in that case YES, there is a CSS selector - ng-pristine

But there is a drawback that if you enter something in the input field and then removes it, Then the identifier class will not visible… in that case mandatory field works. Mandatory field has a feature that you write something in it and when you removes it… it is highlighted by default due to its mandatory functionality.

50 Likes

okay, thanks @Nikhil.Dhanda

2 Likes