Prepopulate

jbrauer - March 22, 2006 - 16:06

Allows fields in most forms to be prepopulated from the URL. It uses the $_GET variable in a URL to modify the #default_value of form fields.

For example, the following URL,

http://www.example.com/node/add/blog?edit[title]=this is the title

will automatically fill the Title field on a new blog post with the words "this is the title". Any field can be prepopulated this way, including taxonomy and CCK fields. You can prepopulate more than one field at a time as well. Prepopulate is excellent for creating bookmarklets. For examples on usage for all of these cases, please read the USAGE.txt file that comes with the module or you can read the online handbook page.

Originally written by eafarris.

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.1 Download (9.3 KB) 2008-Nov-17 Notes
5.x-1.4 Download (9.21 KB) 2008-Nov-17 Notes

Development releases

Version Downloads Date Links
6.x-2.x-dev Download (9.54 KB) 2009-Oct-29 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.