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
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
dynamicLine | DynamicLineV10 | The Dynamic Line in latest format. |
layoutIndex | number | The index of the layout. |
Returns
Section titled “Returns”A promise that resolves to an array of FieldForPersonalization objects.
Throws
Section titled “Throws”Error if the layout with the specified index is not found.