This MS Documentation page shows how to create a cascading lookup for OPTION SETS. This section on that same page shows one very very basic example of how to do this with lookup fields. However, the particular API call in that example fillLookupFromSearch() looks like it is probably just searching the display text. That's probably not going to meet most developers' requirements.
In my team's case, we need to filter a list of COUNTIES based on the STATE lookup. So we'd need to filter on another field of the County record.
I have so far been unable to find reference documentation for the Marketing Javascript API or the fillLookupFromSearch() function in particular to see if there's a way to achieve this. Is there just no API reference available yet?
The documentation on how to build a lookup field filtered by another field can be found here:
Hello,
We are working on new documentation for filtering (cascading) Lookup fields. It will be publicly available by the end of June.
Petr
Nya, if you had clicked the link in the post, you would see a section labeled "Set lookup fields via API" and from that section I quote: "You can use the JavaScript API to perform a search request in the background..."
Hi,
As far as I know, there is no such API.
Maybe you could raise a support ticket for further help.
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156