Returns the data names of the form fields

Parameters

type String (optional) [default = any] - Optional field type.

If you include a field type then you will only get back the data names of fields matching this type.

Returns

Array

Examples

DATANAMES()

// returns ["name","items","cost","choice_value","child_items","child_item_cost","choice_field"]
DATANAMES('Repeatable')

// returns ["items","child_items"]

Hint

To get all the data names from only within a repeatable or section field use the FIELDNAMES() function.