etEmail.error = "Invalid email" is used to:

  1. Close the keyboard
  2. Send an email
  3. Show an error message and icon on the field
  4. Clear the field
Answer

C) Show an error message and icon on the field

setError marks the field as invalid.

Computer Science MCQ · More Lab: Registration Form UI MCQs · Practise