What you can do is not have the country field on the form and use a workflow to populate the coutry field by using a bunch of if thens.
eg if ip country is italy set country to italy else if ip country is etc… entry requirements to the workflow being ip country is known and country is unknown.
fill it our for the markets you are interested in.
It isn’t perfect but it is like 90%
obviously if you are doing multilingual marketing then this is more dangerous, but if you are just using the data to segementation it gets a lot further.
you can always have forms down the road that prepopulate the country field giving them the chance to change, but only show those forms to people who’ve already submitted a form / country is known.
If you really wanted to populate the country field at the first point of contact you’d have to ask for geo location priviledges and javascript the if thens on the page, or use an ip location service and populate on the fly that way. again with the if thens in the page. I’m not sure if javascripting forms with dependant fields triggers the depandancy, I can’t remember from when I last did it. easy to test though.
There are paid services to get that data, maybe free ones too, I didn’t look hard at all.
EDIT here a link to a working javascript code that gives you country from ip from free APIs
Of course that doesn’t solve your actual problem which is getting the GDPR consent to run dynamically.
The thing with IP country is that it is a field that only gets populated once they have filled in at least one form, and I’m assuming your looking at first contacts here.
@karstenkoehler can the workflow be used to check the gdpr seperately? (I’ve not currently got access to the workflow tools since september and I know it isn’t a normal field) if not then you could use the javascript that populates the country to change the value of the gdpr statement for different countries on the fly, one box many statements.
If you did that you might also want to record the text that they agreed to in a hidden form field, as you wouldn’t be holding that information in the form field information in hubspot. Thats a legal question beyond me.