Form is not submitting when certain option is selected.

  • IDECORP
    Asked on August 15, 2018 at 6:03 PM

    Olá amigos!

    Estamos tendo dificuldade para explicar...

    Nós colocamos no formulário 2 opções de pagamento para a compra:

    1ª - Em Dinheiro (a ser pago na hora da entrega do produto)


    Em Cartão de crédito (através do pagseguro)


    O problema no botão "enviar" acontece apenas quando o usuário escolhe pagar com "dinheiro". 

    Se ele escolher pagar com cartão, o botão "enviar" funciona perfeitamente...


    Portanto, precisamos de um botão "enviar" sem vínculo com o pagseguro, para quando o usuário não desejar pagar a compra com cartão de crédito....


    Obrigado pela paciência e apoio.


    James1534364117DINHEIRO Screenshot 10

  • Kevin Support Team Lead
    Replied on August 15, 2018 at 6:07 PM

    I would recommend you to kindly try doing the following: 

    1. Remove one of the submit buttons you have, there  is no need  to have two different ones since any of them will submit the form no matter the selection made, you may delete the current one related  to the condition: 

    1534370693screenshot 01 Screenshot 10

    2. Set up a condition to un-require the payment field when the option "dinheiro" is selected. 

    Here's a guide where you will also find more information about this conditional logic: https://www.jotform.com/help/367-How-to-Make-a-Field-Required-Based-on-User-s-Answer

    Please kindly give it a try and let us know how it goes. 

  • IDECORP
    Replied on August 15, 2018 at 8:41 PM

    Olá!

    Eu tentei configurar uma condição para cancelar a exigência de pagamento quando a opção "dinheiro" estiver selecionada, mas não foi possível... o sistema não permite selecionar o botão enviar.

  • Kevin Support Team Lead
    Replied on August 15, 2018 at 10:08 PM

    The conditions will not work if you try to set them up based on the submit button due to the fact that the submit does not have an input. 

    As I explained before, the condition should be triggered when the option "dinheiro" is selected so you need to set it up based on the field "Forma de pagamento", example: 

    1534385262screenshot 01 Screenshot 10

    "Total" is simply the payment field. 

    I hope this helps. 

  • IDECORP
    Replied on August 15, 2018 at 10:15 PM

    Olá!

    Entendi... obrigado!

    Resolvi utilizar outro meio de pagamento, PayPal, pois o pagseguro não está funcionando... eu substituí o token mas não resolveu.

    Obrigado pelo apoio de vocês e parabéns pelo suporte, rápido e a todo momento. Realmente impressionante!

    Grande abraço!

    James