Welcome to the community, @pmarques! Maybe this post discussed previously should help you solve your issue:
Thank you @Dnes for helping out @pmarques with the cascading select documents. Appreciate your effort to make this community a learning and sharing platform. Expecting the same in the upcoming days as well!