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

377
Vistas
wixData.insert() inserting blank into collection

I have the following code in my backend on my Wix site. It is meant to insert some values into a private data collection. Here it is:

export function insertDataMembers(username, email, password, wsmoStatus, ssmoStatus) {
    let toInsert = {
        'title': username.value,
        'email': email.value,
        'password': password.value,
        'wsmoStatus': wsmoStatus,
        'ssmoStatus': ssmoStatus
    };

    wixData.insert('members', toInsert, options);
}

When I call this from the frontend, it inserts a new row in the collection, but everything except for the hidden fields is blank. I'm using suppressAuth and suppressHooks. What's going wrong? (The wsmoStatus and ssmoStatus variables are booleans, the rest should be strings).

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Oops, I just realized what was wrong. I also asked this on the Velo by Wix forum and got a reply there that helped me. I think the issue was that I was using .value but the variables I was using that on are not strings. I removed the .value and it worked, so I think that was it.

about 4 years ago · Juan Pablo Isaza Denunciar
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