Skip to content

getTextFieldsForPersonalization

function getTextFieldsForPersonalization(dynamicLine: DynamicLineV10, layoutIndex: number): FieldForPersonalization[];

Defined in: dynamic-line-utils/src/helpers/textPersonalizationHelpers.ts:114

Retrieves the text fields for personalization based on the provided parameters. NOTE: You may need to call upgradeDynamicLineToLatestVersion on the dynamic line before using this function

ParameterTypeDescription
dynamicLineDynamicLineV10The Dynamic Line in latest format.
layoutIndexnumberThe index of the layout.

FieldForPersonalization[]

A promise that resolves to an array of FieldForPersonalization objects.

Error if the layout with the specified index is not found.