Dhaval Kacha
hide field conditionally and submit values accordingly.
Oh, I have used this method mutateFormDataBeforeCreate() before.
Its really great alternative for Hidden or to submit default value.
Now my code looks like this.
I've removed if else and added hidden for manager role and adding default value for manager role.
Thank you @Dennis Koch , @ChesterS
12 replies