If your dog vomits foam just once, just be sure to gradually re-introduce water and plain food so as to not stress your dog's stomach too soon. However, if your dog regularly vomits foam, or can't stop vomiting, ask your vet for advice. Regularly vomiting foam can indicate an underlying health problem. Be sure to be on the lookout for other symptoms that come with your dog's vomiting episodes.