546
Views
4
Comments
Solved
Use a Toggle Button to enable or disable an Input Widget
Question

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!

2019-05-22 11-30-09
Marcelo Ferreira
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

2021-09-06 15-09-53
Dorine Boudry
 
MVP

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...

2018-09-27 18-20-33
Swatantra Kumar
Champion

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.

2019-05-22 11-30-09
Marcelo Ferreira
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

UserImage.jpg
Miguel Pontes

It worked! Thank you all for your help! 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.