applyTextFields
function applyTextFields( dynamicLine: DynamicLineV10, personalizedFields: PersonalizedField[], layoutIndex: number,): DynamicDesignSpecWithoutProductInfo;Defined in: dynamic-line-utils/src/helpers/textPersonalizationHelpers.ts:363
Applies text fields to a dynamic design specification without product information.
NOTE: You may need to call upgradeDynamicLineToLatestVersion on the dynamic line before using this function
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
dynamicLine | DynamicLineV10 | The Dynamic line in latest format. |
personalizedFields | PersonalizedField[] | The personalized fields. |
layoutIndex | number | The index of the layout. |
Returns
Section titled “Returns”DynamicDesignSpecWithoutProductInfo
A promise that resolves to the updated dynamic design specification without product information.
Throws
Section titled “Throws”An error if the layout with the specified index is not found.