Displaying a Form Field Based on Person Attributes

Troy_Larson1
Level 3

Displaying a Form Field Based on Person Attributes

Hey everyone, have a question for you all.

In our attempts to get GDPR compliant, I'm trying to figure out if it's possible to display a certain form field based off a person's location, whether they are a customer or not, and if they've already completed the field.

For example, if we know that a person is a customer then when they visit our form we hide a GDPR field. Or conversely, if we know they are from Europe and are not a customer we show them a specific GDPR field.

I know you can display fields based off other values in forms - for example if you say the territory you're in is N.America I know you can then show a country field with values of USA, CAN, MEX, however it looks like you can't combine things like this. For example: not customer and in Europe, then show field. Am I missing something? Can this be done? To do this, are we looking at something like site personalization?

Any ideas you guys have would be much appreciated.

Thanks,

-Troy

3 REPLIES 3
Grégoire_Miche2
Level 10

Re: Displaying a Form Field Based on Person Attributes

Hi Troy,

You could create a "GDPR status" field that is computed from your complex rules (smart campaigns with choices using smart lists as tests). Then add this field as a hidden field in all your forms and use is as the driver for the visibility rules.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

Re: Displaying a Form Field Based on Person Attributes

Quite possible, but as you note, the Visibility Rules in the Form Editor won't cut it because they don't allow for multiple conditions.

Instead we use VRs based on a hidden field, but the hidden field value itself is set using JavaScript, so it can use any logic to decide the final outcome.

Or you can build the whole thing using only JS and CSS, no formal VRs at all.

Jay_Jiang
Level 10

Re: Displaying a Form Field Based on Person Attributes

If you're using Marketo landing pages you can use a combination of dynamic content and different forms.

Personally, I'd opt to modify the form using JS since you'd probably be using a web service to get the country of a new IP address hitting your site anyway.