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

145
Visualizações
How to get ajax submitted URL on success function

I am creating an ajax request to subscribe to newsletter. The platform is Shopify so its a limited resource available for me to validate if the form is successful or not.

I would like to add a error message if email is already subscribed.

I created an ajax function that post data to Shopify URL /contact#contact_form.

According to Shopify it does not return any error or message when email is already registered. One thing we can do is just checking if the posted URL has ?contact_posted=true then it means the form is successful. Otherwise I am assuming email is already registered.

On ajax success function how do I check if the submitted URL has this query string parameter ?contact_posted=true. Fyi the form action is redirected from /contact#contact_form to ?contact_posted=true on success.

Any help would be appreciated.

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