Pre-populate Fields in webform Drupal 9

426 Views Asked by At

Is it possible to pre-populate a drupal9 webform with values from the database? I have two webforms. Customers and Service Report. The customer information will be filled in from the office and the service tech has to fill in the service report on site.

Every saved Customer has an automatically generated Submission ID. on the Service Report i would like to enter the Submission ID from the Customer to per-populate the same existing fields automatically (Name,Company,Adress etc..)

is this possible? any help is apericated

Id Lock up

1

There are 1 best solutions below

1
Philippj On

How should the Submission ID be integrated in der ServiceReport? What is the Userstory?

for ex. you can set an Entity-field in ServiceReport (for ex Dropdown) which shows all the customers. The user can select one customer. So there is a connection with the id between two tables.