it took a month and a half to figure out how to get a check box to default as checked. The documentation should be more thorough.

It should mention that you use the name attribute of the tag and not the id attribute.

It should then mention that a checkbox defaults to checked when you enter url?field=checked

Comments

Francewhoa’s picture

I wrote a README.txt file at http://drupal.org/node/795442

See user cases and more examples on the updated module project page at http://drupal.org/project/elementdefaults

_vid’s picture

Here's another use case example:
If you want to enable elementDefault to work on a specific content type you could use the php option: 'Enable if the following PHP code returns TRUE (PHP-mode, experts only).'
Here's the syntax if your custom content type is named "meeting_item":

if ( arg(0) == 'node' && is_numeric(arg(1)) )  {
  $node = node_load(arg(1)); 
  if ($node) {
    if($node->type == "meeting_item"){
      return true;
    } 
  }
}