Fill form in CreateAction
i have Offices and Members,
if a member is created from an already existing office office_id should be forced (pre-filled)
i created a MembersRelationManager that extends RelationManager, i have MembersTable with headerActions:
mutateDataUsing is setting the office_id after creating and before inserting to DB,
but what i want is to fill the form with office_id initially,
is there any way to pre-fill the form, or set data somewhere so it can reflect into the form?
PS: EditAction in the other hand has mutateRecordDataUsing which does the job
2 Replies
Solution
You use use the
->fillForm()
method on the CreateAction
it worked, thank you for your accurate and quick reply