Pergunta de entrevista da empresa inLighten

When you created a form, what type of data does it take in? Do you do input validation while the user types or when they attempt to submit the form?