Arrays

Last updated on June 26, 2024.

Arrays are used to store multiple values for the same property.

Defining arrays

You can use arrays by adding a property with set to , for example:

Sending arrays to a server

Consider a page with the following content:

If you navigate to , you will learn that only the last element is displayed - travelling. To send an array of values, you must add to the input name. Hence displays the expected result: .

Tip

If you use Forms, you do not need to remember to add to the input name - we automatically detect if the property is defined as an array and it is already part of .

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.