Is it possible to take only the postal code portion of the address field to use it in calculations?

  • UKExpress
    Asked on May 9, 2015 at 5:35 PM

    For Example if I have the full address in one field separated by commas.

    How can I just select the post code part to use into the distance calculator?

    The Post code is at the end of the field, if it helps I can put the Post code at the start

     

  • raul
    Replied on May 9, 2015 at 5:58 PM

    Unfortunately, I don't think this is possible using only the form builder.
    I think you need to use the full source code of your form and a custom script in order to do this.

    However, I would like to ask if you have checked our driving distance widget? This widget can calculate a distance between two locations. Would this widget work for your needs?

  • UKExpress
    Replied on May 9, 2015 at 6:37 PM

    Can I auto update the field of the start and end of the Driving distance widget? This will be a post code field already filled on the form earlier!

  • raul
    Replied on May 9, 2015 at 6:51 PM

    Unfortunately, that's also not possible because the widget is rendered in an iframe which won't allow to auto-populate the starting city and destination city fields using another value's field. They would need to be entered manually.

    Let us know if you have further questions.