Hi all,
Please I am having problems disabling a button
My intention is to disable the button if either textinput1.value is empty OR textinput2.value is empty but i dont know the right code syntax
please help.
Hi all,
Please I am having problems disabling a button
My intention is to disable the button if either textinput1.value is empty OR textinput2.value is empty but i dont know the right code syntax
please help.
You have to reverse your logic somewhat when working with negative assertions, it can be confusing!
Disabled: {{ !textInput1.value && !textInput2.value }}
If either field is complete the button is enabled (disabled only when both are null)
Disabled: {{ !textInput1.value || !textInput2.value }}
Only when both fields are complete is the button enabled (disabled when either is null)