Overview

When accessing the Drupal content creation screen, I was able to set pre-filled values by specifying query parameters, so this is a memo of the process. The following module is used.

https://www.drupal.org/project/prepopulate

Usage

For example, when adding new content to a content type called “poems,” add query parameters as follows.

</node/add/poems?edit[field_spot][widget][0][target_id]=1&edit[title][widget][0][value]=テスト>

As a result, the registration screen is displayed with the initial values pre-filled as shown below.

Summary

I hope this serves as a useful reference.