Skip to main content

I'm looking to create a form using Salesforce field dependency options. I've never done this before - can you please explain how this works in the form setup? We want to show a list of all 50 states and then depending on which state they choose, a city drop down will appear (but only if it's a state we have cities in which we can work with).

1 comment
  1. Apr 19, 2021, 1:28 PM

    On the field that you're creating dependencies *from*, the State field, you'd go to the "Dependent" tab and check "Display other fields in this form based on the value of this field."

    After that, you'd say when this field equals, e.g. Georgia, to show the particular field containing cities in Georgia, e.g. Atlanta and so on.

    The one challenge in carrying this out is that I believe you'd have to create a separate field for each state you want to show cities for. (One field containing Georgia cities, one field for Alabama cities, etc.) Pardot forms don't allow you to put the same field twice in a form, and though you can reference the same field twice from the "State" field's dependencies -- e.g. Alabama and Georgia could both pull up a city field you have --- you wouldn't be able to make it show *only* cities in Georgia and *only* cities in Alabama respectively when someone selected each of those options.

0/9000