Skip to content
Bug Barometer
All issues
In Review

Platform / Lightning Experience

force:createRecord and passing array value types to DefaultFieldValues fails and displays an error

Summary

When using e.force:createRecord and passing array value types to defaultFieldValues
You may encounter errors highlighting the value is of incorrect type
"The value of a defaultFieldValues entry must be a string, boolean or number. Invalid value type for ...."


This is due to array value types currently being unsupported
ref:
https://developer.salesforce.com/docs/component-library/bundle/force:createRecord/documentation

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as In Review with 7 reports

    Nov 30, 2026

force:createRecord and passing array value types to DefaultFieldValues fails and displays an error · Bug Barometer