Hello.
I would like to deal with the case where the button is pressed multiple times when sending user information.
I wrote a Java script, but if you press the button multiple times, records for that number of times will be registered.
How can I perform an action only once, no matter how many times I press the button?
java sclipt??????????????
Hi Akari,
There are a few components available on the Forge that I believe include the functionality you are looking for.
Hope this helps!
Regards,
Nordin
Nordin Ahdi wrote:
I am able to solve it thanks to you.
The first Forge.
Thank you very much! !
Hi Akari Ukai,
You can use a variable to count the number of clicks and restrict the logic call .
If you want to make the button to ReadOnly mode
Steps:
1) Define a Boolean variable under screen scope
2) Bind the variable to the Button Enabled property
3) Update the local boolean variable value on the button click action flow
4) Ajax refresh the button
Hope this helps you!
Benjith Sam
Hi Akari,I think the best way to do this is to use two local variable to check : If clicked and Once clicked.
Please see the screenshots.
I hope this will help you :)
Good day.
I have a simple solution I had used in my projects.
Assign a dummy style (jsSubmitForm in the example below) to the button and on onclick event use the below JavaScript (baiscally jQuery)
"$('.jsSubmitForm').attr('disabled','true');"
The dummy style name is used to identify the widget by classname in the jQuery.
I am sure this will help resolving your issue.
Saugat
You're welcome Akari, I'm glad I could help!
Just as an add-on to the answers provided here, and for people that land here looking for a solution to this in Reactive Apps, OutSystems UI provides the Loading Button pattern that supports this same scenario.