Check all checkboxes

Written by Paulo Vale on Wednesday, November 14, 2007

There 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.

Related Posts by Categories



Widget by Hoctro | Jack Book
  1. 2 comments: Responses to “ Check all checkboxes ”

  2. By Anonymous on April 7, 2011 at 9:42 PM

    Excellent!!!...thank you...=)

  3. By Ramirez on September 8, 2011 at 10:53 AM

    The post element text is beautifully simple. Thank you