Create New Resource With Defaults?

Wondering if there is a way when creating a new email resource to start from a template, i.e. have a button for "quote email new" and it will create a new record with a pre-defined set of values for defaults?
image.png
Solution
So in each ->default() you can process it how ever you need to return the default state for the field. For example:
->default(function($state) { … return the default based on the state })
Was this page helpful?