How can I allow clients switch locations and destination with a button?

  • Profile Image
    taxi88test
    Asked on September 25, 2017 at 05:24 AM

    Hi,

    My form has location and destination fields that the clients fill, and they need a button to flip between the entries (as in google maps routing).

    To make matters a bit more interesting, i'm using a combination of  2 fields for each: a radio button list for their common destinations (neccesary since 99% of rides use one of them) and a Geocomplete widget for entering other addresses.

    I've tried using the conditionals but i'm unsure of how to preserve the data before it is overwritten by the "copy to field".

  • Profile Image
    Welvin
    Answered on September 25, 2017 at 07:56 AM

    Are you trying to swap entries between widgets? It seems to be not possible, I have tried it. The conditional logic won't work if you are targeting the same fields. I tried a textbox to no avail. 

    A workaround would be to ask the user to determine their locations. Maybe, adopt the radio button fields method. 

  • Profile Image
    taxi88test
    Answered on September 25, 2017 at 08:53 AM

    My users will enter location/destination once, then they have an option to enter another order when they finish (using the thank you page -> prepopulate link). A lot of them will enter multiple orders that way, several days in advance.

    I guess it is possible to just have another link for the return trip, changing the prepopulated fields accordingly - however that requires them to actually notice the 2 different links and use them correctly, with no option to change their minds or correct their mistake other than manually re-editing the form fields. 

    I would REALLY like to avoid that - people will undoubtly make many mistakes that way, and I don't want to waste the time and resources to manually check each order...

  • Profile Image
    Welvin
    Answered on September 25, 2017 at 10:01 AM

    If the purpose is just to keep the data then how about enabling the Auto Fill in the form? 

    https://www.jotform.com/help/227-How-to-Enable-Auto-Fill-on-Forms

    I'm sorry, but I find no option to swap both entries in the form other than asking users to do it manually. Users can just submit a new entry if they wish to return to a different location. 

  • Profile Image
    taxi88test
    Answered on September 26, 2017 at 03:28 AM

    That's unfortuante. People are used to a flip button, like in most websites.

    As for AutoFill, since these are recurring clients there might be issues i'm trying to avoid. 

  • Profile Image
    Nik_C
    Answered on September 26, 2017 at 04:58 AM

    AutoFill option is actually good for recurring clients if they are re-entering the same data in most of the fields in the form. We have Save data and Continue later option as well that could work for you.