Trying to update users time zones

  • 26 June 2019
  • 0 replies
  • 29 views

Badge

I'm looking for a way to update users time zones in FD so that they are correct. I figure I can do this by using a geolocation script to grab the time zone country that they are in / nearest too. This is all fine and I tested with the API.


Where I'm struggling is that I only want to do it once, so I created a checkbox under the customer info to use in an if statement on the portal page to load that segment of code but I'm not entirely sure how to reference the field. I tried the following with no success, I can't be looking very well as I can't find any documents on how to make use of this.

 

{%if !contact.custom_feilds.time_zone_checked %}

<script>alert('Good News Everyone!')</script>

{% endif %}

 



This topic has been closed for comments