How to prefill a multiple Select Input after its dependant field's state is changed?

So I have two SelectInputs (SI): Role and Permissions Select Input. The PermissionSI is dependant to Role, so if the value in Role has changed, PermissionSI will display the permissions of that Role. Then if a specific Role is selected it will let the user to select permissions. For example: I selected the Author role the PermissionSI will display the permissions for Author role. Then if I selected Custom role the PermissionSI will let the user to select permissions How can I achieved this or does the form builder supports this requirement?
2 Replies
Null Keso
Null Keso11mo ago
Oh got it by using the afterStateUpdated method
Solution
Null Keso
Null Keso11mo ago
No description