Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
Firebase not accept more fields for a document

I have a html modal for inputting data into Firebase's Firestore but it's not accepting more than the first 2 inputs and even though I removed the line that put the server timestamp on each document its still adding it to the documents. Below is the javascript code that I used :

import { initializeApp } from 'firebase/app'
import { 
  getFirestore, collection, onSnapshot,
  addDoc, deleteDoc, doc,
  query, where,
  orderBy,
  getDoc, updateDoc
} from 'firebase/firestore'
import { 
  getAuth, createUserWithEmailAndPassword,
  signInWithEmailAndPassword,
  signOut,
  onAuthStateChanged
} from 'firebase/auth'

initializeApp(firebaseConfig)

const db = getFirestore()
const colRef = collection(db, 'Guides')

//adding docs
const addGuideForm = document.querySelector('.add')
  addGuideForm.addEventListener('submit', (e) => {
    e.preventDefault()

    addDoc(colRef, {
      title: addGuideForm.title.value,
      content: addGuideForm.content.value,
      test: addGuideForm.content2.value,
      verif: addGuideForm.verif.value,
    })
    .then(() => {
      addGuideForm.reset()
    })
  })
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda