Announcements
You're right to question if there's a better solution than the one discussed five years ago, especially with the evolution of Dynamics 365 Marketing forms.
Good News: Yes, there have been significant improvements, and you can now directly achieve this within the Dynamics 365 Marketing form editor without relying on the older, more complex workarounds involving hidden fields and JavaScript for pre-population.
The Modern Solution: Using Lookup Fields and Default Values
The most straightforward and supported way to collect the Company (Account Name) and Job Title associated with a Contact filling out a Marketing form is by using Lookup fields and leveraging default values based on the contact record.
Here's how you can set up your form:
firstname
) field of the Contact entity. Mark it as Required.lastname
) field of the Contact entity. Mark it as Required.emailaddress1
) field of the Contact entity. Mark it as Required.account
).parentcustomerid.name
) as the field to prefill from.contact
).jobtitle
) field of the Contact entity.jobtitle
) as the field to prefill from.Why This Works and is Better:
parentcustomerid
of the Contact. Dynamics 365 Marketing handles the relationship and display of the Account name.Addressing the "parentcustomeridname is read-only" Warning:
The warning message "Field parentcustomeridname is read-only and cannot be used in the form" likely appears if you try to directly add the parentcustomeridname
field (the name of the related Account) as a direct input field on the form. This field is a calculated, read-only value that displays the name of the Account linked through the parentcustomerid
lookup.
By using a Lookup field mapped to parentcustomerid
and then utilizing the "Default value" to prefill the name from the related Account, you are correctly referencing the relationship and displaying the desired information without trying to directly use the read-only name field for input.
In summary, use Lookup fields for "Company" and "Job Title" and leverage the "Default value" option to prefill these fields with data from the Contact record. This is the modern, supported, and much simpler way to achieve your requirement in Dynamics 365 Marketing forms.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator