Cascading Dropdown to 3 levels

Certified Senior Developer

I am trying to implement 3 level cascading dropdown fields. 'State' dropdown field will have choices based on 'country' selected and 'City' dropdown field will have choices based on 'State' selected. I have created choices for 'States' field using choose() function. But not sure how to create choices for 'City' field. It would be great if anyone can respond to this.

Note: I am using localVariables for all the data. Not querying to DB. This is only for testing purpose.

  Discussion posts and replies are publicly visible