Conditional logic: Conditional logic not working

  • schreiberemilia
    Gefragt am 19. August 2023 um 07:55

    Guten Tag,

    in meinem Formular habe ich einige Bedingungen geschrieben.

    Nun habe ich das Problem, dass plötzlich die Fragen mit den Namen "Hallo1" und "Hallo2" immer angezeigt werden, obwohl ich sie verbergen lasse.


    Wo liegt mein Fehler?

    VG Emilia

  • Shirized Jotform Support
    Geantwortet am 19. August 2023 um 12:20

    Hi Emilia,

    Thanks for reaching out to Jotform Support. I'm sorry this is happening. 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.

    As for your issue, when I tested your form, everything worked the way it was supposed to. Take a look at the screencast below to see my results:

    Conditional logic: Conditional logic not working Image 1 Screenshot 20

    Can you give us more information on how your form works? Or can you give me an instance where the Hallo1 or Hallo2 page should be displayed and hidden? If you can send us a screen recording of how you replicated that would help further investigate. You can use Loom or upload a video on your Google Drive and share a viewable link.

    Keep us updated and let us know if you need any more help.

  • schreiberemilia
    Geantwortet am 19. August 2023 um 13:06

    schauen sie nochmal genauer ihr Beispiel an.
    Es werden ihnen beide Felder "hallo1" und "hallo2" anzeigt (siehe in der Überschrift - nicht als Auswahlmöglichkeit)


    Ich möchte aber nicht, dass diese angezeigt werden.


    VG Emilia

  • Rhina Jotform Support
    Geantwortet am 19. August 2023 um 15:35

    Hi Emilia,

    Thanks for getting back to us. It seems you have the following conditional logic set on one of your field that if the value Ich bin am Ende, ich kann nicht mehr is Not selected Hallo1 will be hidden. Users would need to select this option to hide Hallo1. Conditional logic: Conditional logic not working Image 1 Screenshot 20

    So that we can better understand the requirement, can we ask what specific option or value should not show Hallo2 or Hallo1 when selected? Also your form has multiple fields with the name Schreiben Sie eine Frage field label name, I recommend updating the field label to specific labels to avoid confusion. 

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.


  • schreiberemilia
    Geantwortet am 20. August 2023 um 04:54

    Also nochmal genauer:

    wenn beim 1.Feld "Ich bin neugierig und schaue mich um, mit dem Ziel gesund zu bleiben" ausgewählt wird,

    dann soll 2. Feld kommen (das funktioniert noch)

    wird beim 2.feld "mir geht es gut und ich fühle mich gesund" ausgewählt, dann soll das Feld "mach weiter so!" erscheinen.
    --> dies klappt nicht. Es erscheinen fälschlicherweise die Felder "hallo1" und "hallo2"


    verstehen sie jetzt mein Problem?

    VG


  • Martin_A Jotform Support
    Geantwortet am 20. August 2023 um 07:47

    Hi Emilia,

    Thanks for getting back to us with more details. I have cloned and tested your form and I can see that you are using the Show/Hide Conditional logic for most of the fields in your form. You are showing and hiding the same form fields in multiple conditions, and this is causing a conflict in the conditional logic of your form.

    I suggest that you modify the conditional logic in your form by utilizing diverse states in your conditions. For example, instead of using 'Is Equal To' for all values, you could use 'Is Not Equal To' for others. Additionally, you can combine your conditions with other types of conditions like the Skip To/Hide Page conditions.

    To resolve the issue you encounter with the '2.Feld "mir geht es gut und ich fühle mich gesund"' option, you can use the Skip to/Hide Page conditional logic. So instead of hiding all the form fields and showing only the last field when the user selects "Mir geht es gut und ich fühle mich gesund", you can redirect the user directly to the "Mach weiter so!" form field by using Skip To/Hide Page condition:

    Conditional logic: Conditional logic not working Image 1 Screenshot 30

    If you still encounter issues after implementing the condition from above, you might want to disable or remove the current Show/Hide condition you already have for the "Mir geht es gut und ich fühle mich gesund" option:

    Conditional logic: Conditional logic not working Image 2 Screenshot 41

    We also have a guide about Conditional Logic for Online Forms that you can check out.

    Give it a try and let us know how it goes.

  • schreiberemilia
    Geantwortet am 21. August 2023 um 06:33

    Hallo,

    nun habe ich bei meinem Formular "Close of Aktuell" meine Bedingungen etwas verändert.

    Wenn ich nun in den Vorschaumodus gehe, funktionieren meine angegebene Bedingungen überhaupt nicht. Es werden ab dem 3. Feld immer falsche Felder angezeigt.

    Was ist der Fehler?

  • schreiberemilia
    Geantwortet am 21. August 2023 um 07:09

    Hallo,

    ich habe auch das Gefühl, dass das Programm mit mehr als 5 Bedingen überfordert ist. Ist das Programm für komplexere Fragebögen nicht geeignet?
    VG Emilia

  • Martin_A Jotform Support
    Geantwortet am 21. August 2023 um 07:12

    Hi Emilia,

    Thanks for getting back to us. Could you explain the workflow of your form and how the conditions in the form should work so that we can assist you in the best possible way?

    Based on your description and based on the construction of your current conditions, I would suggest you to hide all the fields in your form, and then show them based on the user's selection. For example, if the user chooses the "Ich bin neugierig und schaue mich um, mit dem Ziel gesund zu bleiben" option in the "1.Feld" form field, you will only show the next form fields that should appear if that option is chosen and you won't need to hide the other form fields in the same condition.

    This approach should improve your current conditional logic and avoid any conditional conflict. You might also want to check our How to Hide Form Elements guide.

    Give it a try and let us know how it goes.


  • schreiberemilia
    Geantwortet am 21. August 2023 um 07:23

    Wenn ich alle Felder verberge, dann funktionieren ja auch keine Bedingungen mehr?

  • Andreas Jotform Support
    Geantwortet am 21. August 2023 um 08:22

    Hallo Emilia,

    vielen Dank für Ihre Rückmeldung. Ich habe mir Ihr Formular angesehen und Sie müssten, wenn Sie mit verstecken Formularfeldern arbeiten, Ihre Bedingungen löschen oder überarbeiten. In meinem nachfolgenden Beispiel habe ich alle Bedingungen entfernt/deaktiviert und nur eine für z.B. Hallo 1 und Hallo 2 angelegt. Z.B.:

    WENN: 1.1. Feld
    ZUSTAND: Ist Gleich
    WERT: z.B. Ich bin neugirig ...

    DANN: Anzeigen
    FELD: 12. Hallo1

    usw.

    Conditional logic: Conditional logic not working Image 1 Screenshot 30Da die Felder versteckt sind, werden diese nur angezeigt, wenn die Bedingungen entsprechend ist, ansonsten bleiben diese verborgen und wie von Ihnen Ihrem ersten Ticket angesprochen, kann nicht mehr passieren.

    Lassen Sie mich Ihnen mein Ergebnis zeigen:

    Conditional logic: Conditional logic not working Image 2 Screenshot 41

    Probieren Sie es aus und lassen Sie uns wissen, falls Sie weitere Fragen haben.

  • schreiberemilia
    Geantwortet am 21. August 2023 um 11:30

    Hallo Andreas,

    ich bin sehr froh über eine deutsche Antwort und habe das gefühlt, dass es evtl so klappen könnte. Ich werde es probieren.

    Noch eine Frage: wenn ich nun in meinem Formular dann zurück gehe und einen anderen Pfad gehen möchte funktioniert das manchmal nicht? gibt es da auch noch einen Trick.


    Grüße

    Emilia

  • Shirized Jotform Support
    Geantwortet am 21. August 2023 um 12:27

    Hi Emilia,

    Thanks for getting back to us. 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. 

    As for your question, do you want to try another workaround? If so, you can do that. As advised by my colleague Andreas, you need to modify or disable all your conditions and re-create new conditions for it to work. If in any case, it still doesn't work, let us know and we'll do some more testing to see what's going on. 

    Keep us updated and let us know if you need any more help.

  • schreiberemilia
    Geantwortet am 21. August 2023 um 12:32

    Hallo,


    ich habe nun alles geändert und es funktioniert. Schauen sie nun folgend das Formular "Beste Version" an.

    Wenn nun eine Person das Formular ausfüllt und nach Eingen Punkten wieder zurückkehren will und sich umenscheidet, funktioniert die Reihenfolge nicht mehr gut.

    Kann man das verbessern?


    VG Emilia

  • Waqas Jotform Support
    Geantwortet am 21. August 2023 um 15:02

    Hi Emilia,

    Thanks for getting back to us. By pressing the previous button, you can easily return to your previous card. Or you can click on the dots below the form. Check out my screencast below:

    Conditional logic: Conditional logic not working Image 1 Screenshot 20

    Let us know if there’s anything else we can help you with.