This issue is in both 7.x-2.1 and 7.x-2.x-dev.

When creating a node, Custom CCK fields cannot be prepopulated.

I have only been able to successfully prepopulate fields such as the Title and Author.

Any custom fields are impossible to prepopulate.

For example, this is a simple text field called "Chart Number" with the name "field_dental_pr_chart_number[und][0][value]".

<input type="text" id="edit-field-dental-pr-chart-number-und-0-value" name="field_dental_pr_chart_number[und][0][value]" value="" size="12" maxlength="10" class="form-text required">

The follwing URL does not work:

domain.com/node/add/content-type?edit[field_dental_pr_chart_number[und][0][value]=1234

Even the Body field does not prepopulate even when following the documentation:
http://www.example.com/node/add/content?edit[body][und][0][value]=this is the body
Body does not work

This somehow does not seem to be an issue with the Webform module. Only on the node creation form.

CommentFileSizeAuthor
#2 Selection_999(161).png23.78 KBandrewmriv

Comments

andrewmriv created an issue. See original summary.

andrewmriv’s picture

Issue summary: View changes
StatusFileSize
new23.78 KB
andrewmriv’s picture

Issue summary: View changes
aporie’s picture

Sub

aporie’s picture

I've found this related content.

Can you tell me if it helps ? No way for me to get it works, even when I'm using edit[group_name][field_name][und][0][value]=my value.

andrewmriv’s picture

@Aporie - I don't even want to use this module anymore. What you are attempting to do is correct, it just simply is broken. Assuming that you are also using Drupal 7, this stopped working in 7.x-2.1.

If you use the older (not secure) version 7.x-2.0, everything works as intended.:
https://www.drupal.org/project/prepopulate/releases/7.x-2.0

This module has not had a release since March 1, 2016 (as of my writing this), so I would recommend staying away from this.

==

Edit:

The patch found in this thread for comment #55 solved the problem:
https://www.drupal.org/node/2679839#comment-11861629