Toggle menu

helper.getFieldValues(fieldName)

Gets the values submitted for a field.

This function can be used on repeating and non-repeating pages.

Executed

Client-side and server-side.

Arguments

ArgumentTypeDescription
fieldNameString, requiredThe name of the field to return data for

Returns

The structure of the data will depend on the number of instances found.

Single Instance

Whether a single instance of a repeating page, or a non-repeating page, the value of a single field will be returned as a string.

"Tim"

Multiple Instances

Where the field exists on multiple instances of a repeating page, the values are returned as an array of strings.

[ "Tim", "Leo" ]

Last modified on September 13, 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon