Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
FrancewhoaI 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
Comment #2
_vid CreditAttribution: _vid commentedHere'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":