#Set TextInput via SubModal
4 messages · Page 1 of 1 (latest)
Hello, i currently plan to implement a feature in my site where the user can select a punishment template via a submodal. ->
https://i.imgur.com/u3IMzRr.png
https://i.imgur.com/a81WI2A.png
https://i.imgur.com/RL3ZIjm.png
The issue is that a select menu would be the easier option but showing the description and other attributes would be too much in the select. How would I go about selecting the template via the modal and then inserting the selected id in a hidden punishment_template field on the main modal?
PunishAction -> https://pastebin.com/SQgDg7F2
TemplateTable -> https://pastebin.com/ssR0gnQ1
the blade is just
<div>
{{ $this->table }}
</div>
Please ping me on any responses, I have my discord muted for normal messages.
@velvet cypress
I think the ModalTableSelect is what you are looking for: https://filamentphp.com/docs/5.x/forms/select#selecting-options-from-a-table-in-a-modal