How to create dependent field in mautic form?

I need to create dependent fields in Mautic form like Select a country and then based on the selection I want to display list of states but I am not getting an option to add the dependent field.

Any help will be appreciated.

This feature would be really useful.

This issue in github is related, not sure what is happening with it though: dependent form fields · Issue #8595 · mautic/mautic · GitHub