General Discussion

 View Only

This Week in Support: How conditional logic works

  • 1.  This Week in Support: How conditional logic works

    Posted 01-12-2023 08:00
    Edited by Pat Cooney 02-06-2024 11:45

    This week Varun and I wanted to discuss a very powerful feature of the ProntoForms application: Conditional Logic. Here is a two-part article that will hopefully help you understand what conditional logic is and how to use it as well as how to submit a ticket to support if you are getting an error with your conditional logic statements.


    Part 1: What is conditional logic and how does it work 

    Conditional Logic allows you to create a task or action that only happens when a specific set of conditions are met. This allows you to set up your forms so that they can adapt as the user is filling them out.

    Here is a brief example of how conditional logic can be used to display a question based on questions filled out previously in the form. Specifically, we want to only display Question 3 (Q3) if either Question 1 (Q1) or Question 2 (Q2) have already been answered. If neither question has been answered, then we don’t want to display Q3 at all. Here is how you can set up that conditional statement in three steps. 

    First, use the “If” statement as; 
    Q1 is answered  
    or  
    Q2 is answered

    Second, use “Then” statement as; 
    Q3 is visible

    Third, use the “Else” statement or keep the autogenerated actions.
    Q3 is not visible.

    Our Product Documentation is the best place to learn all about how to set up and configure condition logic for your forms.
    Overview: Conditional Logic 
    How Conditional Logic Works

    Part 2: How to contact support if you get an error 

    Depending on your use case there is a good chance that you’ll be building forms where your workflow requires one or more conditional statements. Some conditional statements may also be related to or dependent on earlier statements in the same form.

    Sometimes the form builder does not show an error while configuring your conditional statements and everything seems fine. However, when you try to open the form on an iOS device, you might see an error like “Unable to open the form. Unknown reason, please check the logs for more information”. Additionally, the same form could be opened on an Android or Windows device without any error. This is most likely due to the conditional logic set up in the form.

    In this case, please feel free to contact us, ProntoForms Support, to create a ticket. The technical analyst can check the application logs to confirm that the issue is with your conditional logic and may also be able to check which conditional statement or question(s) could be causing this.

    It is important to note, however, that while ProntoForms Support can likely let you know which conditional statement is causing the problem, we are not able to configure any conditional statements on your behalf. If you are looking for help with building conditional statements, please reach out to our Professional Services team.

    We highly recommend checking the form on an iOS device and one other platform (Android or Windows), to ensure there are no issues, before deploying it for end users so your users can have a seamless experience in the field.  


    #TechTalkSupport
    ------------------------------
    Rasangi Disanayake Mudiyanselage
    Technical Analyst
    ProntoForms
    ------------------------------



Reminder: Content posted to our Community is public content.  Please be careful not to post Intellectual Property that you do not have permission to share.  For more information please refer to our Terms Of Use