How to show/hide a component using actions in form?
As what the title said, I want to show or hide a specific component in the form builder but using the action not the toggle or checkbox.
Solution:Jump to solution
Use the action to set a property in the class and use that property value to determine whether to hide or show the component maybe?
4 Replies
Sorry, not following the use case. An action requires user interaction. What is the use case.
Hi @awcodes example here this is a custom form in a livewire component. Beside the message I want to add the action so that whenever a user wants to upload they will just click the action then show the upload component. It takes a lot of space so I want to hide or show it using action but not toggle or anything else

Solution
Use the action to set a property in the class and use that property value to determine whether to hide or show the component maybe?
I've got it working thank youu @Andrew Wallo