APIs & Integrations

aminamat
Member

Alter checkbox based off of geolocation or IP address

What I’m looking to do is that if someone lands on a form that is not from US or Australia, a checkbox gets automatically selected. Otherwise, it remains unchecked. Can that be done?

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Alter checkbox based off of geolocation or IP address

Hi @aminamat,

If you have some lookup mechanism for IP address locations, you could populate a hidden checkbox based on that location. You’d just want to put the script that handled the checkbox updating in the onFormReady callback:

How to customize the form embed code

This is a list of options that you can use if you just need to tweak a default hubspot form. If you need complete control over the styles and actions of your form, you will still want to use the Forms API.

0 Upvotes