Timer control to disable and enable buttons

I have 3 buttons in a application.i want to enable 1 button at a time for 5 seconds  while other 2 buttons should be disabled during that time.This process contionous as a loop for all buttons.Please guide me how to do that.

Hi,

You can use "RunJavascript" Action  In side that you can write your own java script to enable and disable buttons

$('#"+ button.Id+"').attr('disabled', true); // to disable
$('#"+ button.Id+"').attr('disabled', false); // to enable

You need to wrap this in a javascript setTimeout() function to onyl enable again after 5 seconds.

https://www.w3schools.com/jsref/met_win_settimeout.asp

Regards,

Daniel

Hi,

In attachment you'll find an example of what you're trying to do using the following forge component rather than js.

https://www.outsystems.com/forge/component-overview/1244/sleep

Kind regards,
Glenn