Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

385
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda