Trying to render field editor to include only data from company they picked

  • 1
  • Question
  • Updated 2 months ago
Hi I am trying to create a picklist of companies and then when you've selected the company another picklist will appear with the countries that company has a presence in but i can't get this working.

I have created the picklists in two different field editors in a wrapper. Ideally the 2nd picklist only appears once they have selected the company.

Photo of Gurdeep

Gurdeep

  • 90 Points 75 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Gurdeep,

In what objects are you storing the companies and the countries where the company has a presence?

The general approach to this type of need is to use models to get the data based on selecting a value in the first field or a filter condition on a lookup field to limit the selection of the 2nd pick list.  You can use conditional rendering on the second field to show it when the first field is not equal to 'none' (no value).

Thanks,

Bill