Show an error message if certain conditions are not met

  • Odisey
    Gefragt am 7. September 2023 um 08:52

    Hi, ist es möglich das Formular so einzustellen wenn bestimmte Bedingungen nicht erfüllt sind das kein Weiter Button erscheint bzw eine Fehlermeldung. Genauer gesagt schreibt der Kunde in das Formular wie viele Pokemon Karten er an uns Verkaufen möchte. Wenn die Anzahl unter 500 ist soll der Kunde eine Fehlermeldung bekommen. Ist das Möglich?


  • Gilbert Enterprise Support
    Geantwortet am 7. September 2023 um 11:13

    Hi Berkant,

    Thanks for reaching out to us for help. Unfortunately, our German Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in German, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. Yes, you can use conditional logic to hide/show fields on your form based on the user's answer. Here's a sample step-by-step guide that you can implement on your own form:

    1. Add a Number field to your form. This will be the field where the user will enter the number of Pokémon cards he wants to sell.

    2. Add a Paragraph element as well which will display the warning message if the number is less than 500.

    Show an error message if certain conditions are not met Image 1 Screenshot 403. Add a conditional logic to show the warning message and hide the Submit button if the entered number is less than 500. Here's a screenshot of what the condition would look like:

    Show an error message if certain conditions are not met Image 2 Screenshot 51

    And that's it! The user won't be able to submit the form if the number he enters is less than 500. Below is a sample screencast of how the condition would work in the form:

    Show an error message if certain conditions are not met Image 3 Screenshot 62

    Give it a try and let us know if you have any other questions.