we have a client who'd like to be able to select all the checkboxes at once on the form entries screen and delete all entries for that form.. is that possible for us to modify the contour implementation to make that work.. or is that functionality ever going to be added in as it would be a nice usability piece..
Maybe too much for your client, but I have in the past used some Javascript in the console window of the browser to select all the checkboxes at once. Problem is that if you select more than 10 or so records at a time, the delete takes forever to complete. (This may be the result of having more than 20,000 records in my form)
find the file "editFormEntries" under Umbraco\Plugins
Find the following text: <th style="width: 25px !Important"></th>
Replace it with: <th style="width: 25px !Important"><a href="javascript:void(0);" onclick="$('input[type=checkbox]').prop('checked', true);">All</a></th>
In my environment, Patrick's solution selects each of the entries but doesn't fire the onclick event for each checkbox, and thus doesn't trigger the bulk action dropdown nor truly select each one.
I've extended Patrick's solution, with the full instructions here as follows:
find the file "editFormEntries" under Umbraco\Plugins\umbracoContour
Find the following text:
<th style="width: 25px !Important"></th>
Replace it with:
<th style="width: 25px !Important"><a href="javascript:void(0);" onclick="$('input[type=checkbox]').prop('checked', true).triggerHandlers('click');">All</a></th>
This will cause the click event to fire on all elements matching the expression. Note that this relies on a custom triggerHandlers() function (as the jQuery triggerHandler() function only acts on the first element), which you can add to the header (thanks to Bennadel), as follows:
<script type="text/javascript">
$.fn.triggerHandlers = function( type, data ){
var handlersOnly = true;
this.each(
function(){
jQuery.event.trigger(
type,
data,
this,
handlersOnly
);
}
);
return( this );
};
</script>
I have tested this up to 100 records and it works just fine.
Select All Form Entries and delete for cleanup??
Hi Guys,
we have a client who'd like to be able to select all the checkboxes at once on the form entries screen and delete all entries for that form.. is that possible for us to modify the contour implementation to make that work.. or is that functionality ever going to be added in as it would be a nice usability piece..
Thanks,
Tom
Comment author was deleted
Hey Tom,
We'll look into this request, so pretty sure it will make the next maintenance release
Hi Tim!
Thanks so much! if you wouldn't mind keeping me posted when it's developed I'll let the client know! very much appreciated!
Thanks,
Tom
Did this ever happen?
Not that I know of.. I'd love to know if it will though!
Maybe too much for your client, but I have in the past used some Javascript in the console window of the browser to select all the checkboxes at once. Problem is that if you select more than 10 or so records at a time, the delete takes forever to complete. (This may be the result of having more than 20,000 records in my form)
Hi Tim,
Is there any update on the "Select All" functionlity, I have a client requesting this.
Many Thanks,
Tom
Just change the following:
<th style="width: 25px !Important"></th>
<th style="width: 25px !Important"><a href="javascript:void(0);" onclick="$('input[type=checkbox]').prop('checked', true);">All</a></th>
In my environment, Patrick's solution selects each of the entries but doesn't fire the onclick event for each checkbox, and thus doesn't trigger the bulk action dropdown nor truly select each one.
I've extended Patrick's solution, with the full instructions here as follows:
<th style="width: 25px !Important"></th>
<th style="width: 25px !Important"><a href="javascript:void(0);" onclick="$('input[type=checkbox]').prop('checked', true).triggerHandlers('click');">All</a></th>
<script type="text/javascript"> $.fn.triggerHandlers = function( type, data ){ var handlersOnly = true; this.each( function(){ jQuery.event.trigger( type, data, this, handlersOnly ); } ); return( this ); }; </script>
I have tested this up to 100 records and it works just fine.
Just implemented patrick's solution.
Why is this not in an official release!!?!
Comment author was deleted
You'll be glad to hear that this will be part of Contour v4
It does indeed :)
is working on a reply...