I have a form and I want to pass the form input values into here. How do I populate "San Francisco" dynamically based on what the form input values are?
I have tried creating variables and populate the fields with the variables as such but I received an error message that says
error.ts:166 Uncaught FirebaseError: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field eventName in document events/RNiEJ9nUxVO1IGFr0TL5)
Reference link: https://firebase.google.com/docs/firestore/query-data/get-data#web