The Form

If you type into the idea field of this form, you'll see the count of how many words you have typed. You can see the code on how to make this happen below. Also, it's good to note the id of the submit button, the text field, and the text element showing the number of characters.

0
Thanks for the amazing idea, NAME! We'll be in touch soon!
Oops! Something went wrong while submitting the form.

The Code

The code to count how many words are in an input:

Pass the name field value to the success state: