How do I disable the text inputs base on whether or not a checkbox is checked?
I have looked at the docs for using the state of another component,
Get $get
for example however I do not seem to be able to find the correct way of doing what I would like to.
Does someone mind pointing me in the write direction?
I've attached a screenshot and some code below:
3 Replies
For example, from the docs, if I add
->hidden(fn (Get $get) => $get('london-waiting') === false),
I would expect me checking the box to then show the additional input however it does nothing.Make sure you make London-waiting ->live()
ah perfect, thanks @awcodes !