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

  • garyyello
    Asked on April 14, 2015 at 6: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}

    Jotform Thread 552029 Screenshot
  • Charlie
    Replied 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.

  • garyyello
    Replied 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 :)

  • Charlie
    Replied 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 :)