Use a Toggle Button to enable or disable an Input Widget

Hi!

I've been trying to use a toggle button to enable or disable an input widget but I just can't figure it out!

Can someone help me, please?

Thanks in advance!

Hi Gamer,

what have you already tried so far ?

Is it mobile or web (is easier for mobile)

you probably just forgot to refresh the input whenever the toggle changes...

GamerByMistake wrote:

Hi!

I've been trying to use a toggle button to enable or disable an input widget but I just can't figure it out!

Can someone help me, please?

Thanks in advance!


On action of ToggleButton, you may run a javascript to enable/disable the widget on the page with it's id.

Solution

Hi,

1 To setup the toggle you can follow this document. 

2 Than use that IsChecked variable on input widget property Enabled. 

3 On toggle setup the onChange action. On that action ajax refresh the input widget.

Hope this helps,

Regards,

Marcelo

Solution

It worked! Thank you all for your help!