Wie kann die Mengenauswahl im Dropdown-Element bedingt auf 1 beschränkt werden?

  • Hro1983
    Gefragt am 29. Januar 2025 um 10:32

    Hallo liebes Jotform Team,

    ich habe es schon versucht, bekomme es aber leider nicht hin...

    In meinem Formular "Gutscheine" möchte ich, wenn ich im Feld "Was möchtest du auswählen?" die Wahl Sonax XTREMEAutoinnenreiniger (500ml)... auswähle, dass in dem Feld Menge nur eine 1 ausgewählt werden kann. Von den anderen Produkten kann der Kunde auch 2 auswählen.

    Wie muss hierfür die Bedingung/Logik aussehen?

    Vielen Dank für die Mühe

    Sebastian Peters

  • Jason Jotform Support
    Geantwortet am 29. Januar 2025 um 15:38

    Hi Sebastian,

    Thanks for reaching out to Jotform Support. Our German Support agents are busy helping other Jotform users right now, so 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, it might take a while until they're available again.

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Jason Jotform Support
    Geantwortet am 29. Januar 2025 um 16:39

    Hi Sebastian,

    I checked your form and saw that you have a set of conditions that if the Was möchtest du auswählen field is equal to Dein Wunscherfüller Gutschein im Wert von 20 € or Sonax XTREME Autoinnenreiniger (500 ml) inklusive Microfasertuch, then the Menge auswählen should only set to 1 option. In your case, you need to delete the current conditions and set the Show/Hide a Field condition to achieve your workaround. But first, you need to duplicate the Menge auswählen field. Let me walk you through it:

    1. In the Form Builder, Right-click on the Menge auswählen field and select Duplicate.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 1 Screenshot 90

    2. Then, Right-click on the duplicated Menge auswählen field and select Hide from the options.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 2 Screenshot 101

    3. Click on the Gear icon on the side of the duplicated dropdown element to open Dropdown Properties.

    4. Go to the Options tab, and in the Options section, enter only 1.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 3 Screenshot 112

    5. Go to the Was möchtest du auswählen field and select the Condition icon on the right side of the element.

    6. Hover your mouse over the current condition and click on the Gear icon.

    7. Select Delete to remove the condition. Do the same steps with the other condition.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 4 Screenshot 123

    8. While on the Conditions page, click on Add Condition.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 5 Screenshot 134

    9. Select Show/Hide Field condition from the options.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 6 Screenshot 145

    10. Create the same condition below and click on Save at the bottom, and you're done.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 7 Screenshot 156

    Now, the option to Dein Wunscherfüller Gutschein im Wert von 20 € and Sonax XTREME Autoinnenreiniger (500 ml) inklusive Microfasertuch fields are only restricted to 1 quantity.

    Wie kann die Mengenauswahl im Dropdown Element bedingt auf 1 beschränkt werden? Image 8 Screenshot 167

    You can test and clone my cloned form. We've got a guide here that'll show you how to do that.

    Give it a try and let us know if you need any help.

  • Hro1983
    Geantwortet am 5. Februar 2025 um 09:05

    It works very well, thank you very much :-)

Ihre Antwort