This seems like an exact duplicate of Prepopulate.
http://drupal.org/project/prepopulate

Comments

marcp’s picture

If it's not a duplicate of Prepopulate, it would be good to have a comparison of the two modules.

dman’s picture

Also possibly urlfill
So yeah, a clear explanation of the differences and the reason this is a separate project would be helpful.

ardas’s picture

Version: » 6.x-1.1

Elementdefaults module has three significant advantages:

  1. Simple and short syntax:

    you don't need to know form fields structure - you can use just filed names like:

    • field_cck_text=value or
    • body=value or
    • webform_date=value

    instead of:

    • edit[body_field][body]=value or
    • edit[field_office][0][node_name]=value

    in Prepopulate module.

  2. Graceful syntax for multiple value form element:
    • field_cck_select=value1||value2^mode

    instead of

    • edit[field_office][0][node_name]=value1&edit[field_office][1][node_name]=value2

    in Prepopulate module.

  3. Module support three modes:
    1. mode ^0 for hiding form element
    2. mode ^1 for convert form element to markup
    3. mode ^2 for disabling element
ardas’s picture

Please check the new version of this module. It has more abilities.

ershov.andrey’s picture

Status: Active » Closed (fixed)
doublejosh’s picture