assif_tiger wrote:
Hi Sattibabu Vatti,
Another simple approach to this other then the JS is :
1- Create a local Boolean flag variable on Screen & set it to true by Default.
2- Add this variable to Button Enable Property.
3- Add onClick Listener on Button
4- Under OnClick Action set the local Boolean flag variable to False.
Hope it helps,
Assif
@assif_tiger, this will not restrict the button at all... for any kind of restriction to take place you would also need to:
- set the Button's Name property;
- set the Button's Method property to Ajax Submit;
- add an Ajax Refresh to the OnClick handler to also refresh the Button.
And this will only restrict clicks after the server processes the request. Definitely not what the OP was asking.
As far as I know there is no way of restricting clicks without some sort of Javascript, either directly embedded, like João Melo's and Sravan Vanteru's approaches or by using a component that does it for you behind the scenes.