• Resolved Nathan

    (@natedanielz)


    Hi,

    Is there any way to put an address validation on the address fields?

    I don’t mean the Google places add-on, because that just shows the address while you type if I’m correct?

    Thanks,
    Nathan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @natedanielz

    To validate an address, you should compare it with a third-party service, a database, etc. The plugin includes the Google Places add-on to facilitate the entering address process but does not validate it.

    A possible alternative would be to use the DISTANCE operation. If you use the DISTANCE operation to get the distance between a known address and the address entered by the user and it returns a number, you can ensure that at least the user entered an existing address.

    Best regards.

    Thread Starter Nathan

    (@natedanielz)

    Hi,

    Thanks for the information. I’m going to look into it.

    One last question. Is it possible that with certain validation plugins/API’s to integrate it into CFF?

    I’m pretty clueless to address validation, so before I’m going to do extensive research and try things out I would want to know if that’s even possible.

    Regards,
    Nathan

    Plugin Author codepeople

    (@codepeople)

    Hello @natedanielz

    If you want to validate the address entered by the user with a third-party service, you can implement a server-side equation that calls the service, or you can use the cffProxy operation on the client-side. More information about both alternatives by reading the following posts in the plugin’s blog:

    https://cff.dwbooster.com/blog/2018/10/01/server-side-equations

    https://cff.dwbooster.com/blog/2019/05/17/third-party-connection-module

    Best regards.

    Thread Starter Nathan

    (@natedanielz)

    Thanks so much. I appreciate the help!

    Cheers,
    Nathan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Address validation’ is closed to new replies.