• Resolved WPIngo

    (@wpingo)


    Searching since hours but can’t find a solution.

    Why does this not work:

    PREC((DISTANCE('Musterbergplatz 8 10787 Berlin',fieldname8 + ' ' + fieldname9 + ' ' + fieldname7,'km','DRIVING') * fieldname11 * 2) + 15,2)

    The combination of 3 fields doesn’t work. Is there any issue with my syntax?

    Thank you and kind regards

    WPIngo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter WPIngo

    (@wpingo)

    Sorry, some information misses. fieldname8, fieldname9, fieldname7 are Strings.

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @wpingo

    Please note that the DISTANCE operation relies on the Google Maps API, so it is essential to include a valid API Key in your form settings for it to work properly.

    To help us investigate this under the same conditions, could you please share:

    • The direct link to the page where the form is published
    • The exact values you are entering into fieldname8, fieldname9, and fieldname7

    With this information, we’ll be able to replicate the scenario on our end and provide you with a precise and fast solution.

    Best regards.

    Thread Starter WPIngo

    (@wpingo)

    Thank you very much for your quick reply.

    My Syntax is ok. I forgot to check “Accept advanced code in content as JavaScript code”

    No it works as expected.

    Thank you

    Best WPingo

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @wpingo

    That’s wonderful to hear — thank you very much for confirming that everything is working as expected!

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.