Conversation
supportSearching 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
Sorry, some information misses. fieldname8, fieldname9, fieldname7 are Strings.
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.
Thank you very much for your quick reply. My Syntax is ok. I forgot to c heck “Accept advanced code in content as JavaScript code” No it works as expected. Thank you Best WPingo
Hello @wpingo That’s wonderful to hear — thank you very much for confirming that everything is working as expected! Best regards.
Sorry, some information misses. fieldname8, fieldname9, fieldname7 are Strings.
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.
Thank you very much for your quick reply. My Syntax is ok. I forgot to c heck “Accept advanced code in content as JavaScript code” No it works as expected. Thank you Best WPingo
Hello @wpingo That’s wonderful to hear — thank you very much for confirming that everything is working as expected! Best regards.