You want to display a list of licenses in a repeating group and filter this list based on the menu field. So you need to use data source on the repeating group (expression: do search for licenses: filtered…) In the filter constrains you have to indicate the menu field and reference menu value (you might want to pick a menu from a dropdown menu - so you need to reference the dropdown’s value).
Sell has a custom state called menu = sell (text)
Purchase has a custom state called menu = purchase (text)
and Stock has a custom state called menu = stock (text)
the user has a field called license where the name is “pro” and I add menu_name (purchase, sell)
I need to show for user only menus with (purchase and sell)
So the menus to show in this scenario are → sell and purchase. Not show stock for example.