Skip to content

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

ParameterTypeDescription
dynamicLineDynamicLineV10The Dynamic line in latest format.
personalizedFieldsPersonalizedField[]The personalized fields.
layoutIndexnumberThe index of the layout.

DynamicDesignSpecWithoutProductInfo

A promise that resolves to the updated dynamic design specification without product information.

An error if the layout with the specified index is not found.