PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Repeat Functionality for Address Fields??

  1. Fika
    Member

    Hello,

    I am looking for some help with repeating address fields on my form on the Front End.

    I have a form which by default has 1 Shipping Address. I want to be able to give the user the possibility to add a 2nd, 3rd, 4th shipping address if they like by pressing a "+ add another address" button. Pressing this button would repeat all the address fields for them so they could enter in new shipping information.

    1) Is this possible? If so, does anyone have any help of how to achieve this?
    2) As adding another address in my case comes at a cost, is it also possible to hook this up with adding a cost to the overall price of something?

    It looks like the list field seems to do this functionality (part 1 anyway) it repeats fields when the user presses a + button, so hoping it might also be possible for the address fieldset.

    Thanks in advance

    **Update**
    * Link to wireframe of default state with button http://i43.tinypic.com/dpe99k.jpg
    * Link to wireframe of what happens when button would be pressed http://i43.tinypic.com/537m1y.jpg

    Posted 12 years ago on Tuesday March 13, 2012 | Permalink
  2. Fika
    Member

    I made some quick wires just to help explain what I am trying to do better...

    * Link to wireframe of default state with button http://i43.tinypic.com/dpe99k.jpg
    * Link to wireframe of what happens when button would be pressed http://i43.tinypic.com/537m1y.jpg

    Posted 12 years ago on Tuesday March 13, 2012 | Permalink
  3. What if under the first address field you create a checkbox with something like:

    "Add 2nd Address?" and if they click it, the second address field shows via conditional logic. Then just rinse and repeat for the others with the same methodology.

    Posted 12 years ago on Tuesday March 13, 2012 | Permalink
  4. Fika
    Member

    Hi Rob,

    Thanks for the input. I guess that solution might be able to work but would that mean I would need to actually create X amount of Address Fields in the form, where X is the number of additional addresses I would allow? I am not quite sure if that is what you mean?

    If that is the case I can see how I could set up the logic to add 1 additional address with a check box, but how would I go about the 'rince and repeat' that you are suggesting for the others?

    If you have an specifics on exactly how to achieve this that would be great.

    Thanks

    Posted 12 years ago on Tuesday March 13, 2012 | Permalink
  5. Right, check out this screenr:

    http://www.screenr.com/9PH8

    After i stopped recording I realized that you could even go a step further and add conditional logic on the "Third Address checkbox question" to only show if the 2nd Address has been selected.

    Posted 12 years ago on Tuesday March 13, 2012 | Permalink
  6. Fika
    Member

    Hi Rob,

    That's what I call premium support, appreciate it thanks. Gonna give this a try today and also incorporate the logic into the check box as you suggested.
    Cheers

    Posted 12 years ago on Wednesday March 14, 2012 | Permalink
  7. Awesome, enjoy!

    Posted 12 years ago on Wednesday March 14, 2012 | Permalink