What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Conditional Wizard: How do I add an if, elseif, else statement?

    Asked by garyyello on April 14, 2015 at 06:02 AM

     

    Hello, 

    Am i missing something or can you just not add if, if else, else statements using the conditional login wizzard thing.

     

    Using the wizzard i can make:

     

    IF stfFF_OnwerTitle Is Filled

       OR IF stfFF_OnwerTitle Is Filled

          INSERT Dear {stfFF_OwnerFirstName} into textbox field(id280)

     

     

    What I would lie to make is:

    IF stfFF_OnwerTitle Is Filled

       INSERT Dear {stfFF_OwnerFirstName} into textbox field(id280)

    ELSE IF stfFF_OnwerFirstName is Filled

       INSERT Dear {stfFF_OwnerFirstName} {stfFF_OwnerFirstName} into textbox field(id280)

    ELSE

      INSERT Dear {stfFF_OwnerLastName} into textbox field(id280)

     

    is there a better way to be doing this? maybe using your API for example, also how can i get tags like {stfFF_OwnerLastName} to pass in heading and plain text fields (not form inputs)

     

    thanks for your help.

    {stfFF_OwnerLastName}

    Page URL:
    http://form.jotformeu.com/form/50672849186366

    Screenshot
    heading textbox thanks hello
  • Profile Image
    JotForm Support

    Answered by Charlie on April 14, 2015 at 11:10 AM

    Hi,

    I'm not sure if this is also related to the earlier post that you have regarding passing input values inside the "Text" field, here's the thread: http://www.jotform.com/answers/551140.

    Regarding the conditional logic, we do not have an ELSE statement, BUT this is possible by making the form more stricter. Here's a sample:

    IF stfFF_OnwerTitle Is Filled

       INSERT Dear {stfFF_OwnerFirstName} into textbox field(id280)

    IF stfFF_OnwerFirstName is Filled AND IF stfFF_OnwerTitle Is Empty

       INSERT Dear {stfFF_OwnerFirstName} into textbox field(id280)

    IF stfFF_OnwerLastName is Filled AND IF stfFF_OnwerTitle Is Empty AND IF stfFF_OnwerFirstName is EMPTY

      INSERT Dear {stfFF_OwnerLastName} into textbox field(id280)

     

     

    It seems that you are using this condition to insert input values to your "Text" field, you can first try referring on the first thread I replied, then let me know if this condition seems to match your need or if you need more help on this.

    Kind regards.

  • Profile Image

    Answered by garyyello on April 14, 2015 at 11:20 AM

    Hi, do you guys get up late or maybe work in another timezone? 

    dont worry so much about this one its fixed, 

     

    Thanks for your help :)

  • Profile Image
    JotForm Support

    Answered by Charlie on April 14, 2015 at 12:31 PM

    We actually provide 24/7 support in the forum, however we do ask our users to allow us within 24 hours to respond on their questions or concerns. Please do update us regarding this if you need more help on it.

    Thank you :)