Dynamically disable form fields on variable change
Hello! I want to make for example this select disabled when the variable
$showingConfirmation
is changed to true but I can't find a way to do it yet
It nevers disabled only when I send true
as the initial value![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1227362025852764170/CleanShot_2024-04-09_at_16.55.56.png)
6 Replies
where is the variable? Are you using a custom LW component?
Yes, custom LW component
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1227365664646369431/CleanShot_2024-04-09_at_17.12.38.png)
Yes I'm doing exactly that 🤝
Let me send you the code of the component, give me a min
This is the current file
Just found out this issue https://discord.com/channels/883083792112300104/1116419723467436143/1116420202154954904
Selects cannot be disabled/not-disabled dynamically after initialization
Will mark this as solved since I start using
visible
to render bot select and show one disabled or not depending on the variable, thanks for the help!