Form with nested LW component

Hi!
I made a small searchable select list based on MySQL data.

After selecting from this list the item - based on the VALUE I would like to pass the ID of the selected VALUE to the “parent” form’s type_id filed.

Do you have any Idea how to pass up the parent form the ID value?
I tried to update with Alpine.JS after selected the VALUE and loosing focus the field, but it was not OK.

I would prefer LW / Laravel magic for this.

This small searchbox shuld be applied in the form also for other parent fileds to.

Thanks
Gergely

Hey, @faxunil

Try to use Events or is there any sample code, please provide it with your question.

Hi!
Thank you, I could manage it with emitUp and sendig some parameters back to the parent controller.
Thank you for your quick response.
Br Gergely

Hey, @faxunil

You are very welcome and I’m Glade you could solve your issue.

Happy coding mate.