Check all checkboxes
Written by Paulo Vale on Wednesday, November 14, 2007There is a nice site with lot of useful examples of apex javascript built in functions.
Specifically here you can find a simple example to check all checkboxes at once.
A nice way to integrate this in APEX is to create a checkbox item based on a list of values and in the "Post Element Text" have something like:
<a href="#" onClick="html_CheckAll('P22_MULTI',true);">All</a>
<a href="#" onClick="html_CheckAll('P22_MULTI',false);">None</a>
This will create two links. One to check all checkboxes and other to uncheck them all.
2 comments: Responses to “ Check all checkboxes ”
By Anonymous on April 7, 2011 at 9:42 PM
Excellent!!!...thank you...=)
By Ramirez on September 8, 2011 at 10:53 AM
The post element text is beautifully simple. Thank you