function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Guyver118Guyver118 

How to block any other action after one has been made :8?

I have a table in which the user can edit and delete records but if one quickly clicks for say delete on multiple records on the table it will cancel the one before and do the new one?

 

Is there anyway to say if someone clicks on delete do that action but block any others until complete?

bob_buzzardbob_buzzard

I've got around this issue by using actionStatus in conjunction with JavaScript to disable all the buttons when the AJAX request starts, and then enabling them when it ends.  However, if you have a large number of buttons this can slow the user experience down somewhat.