Split POSTed form data into a list?

I’m sending data from a form to a webhook with the following result:

"body" : {
    "profile0" : "[email protected]",
    "profile1" : "[email protected]",
    "profile2" : "[email protected]",
    "profile3" : "[email protected]"

I want to create, this case, 4 entries in a database (Cockpit in particular).

How can I split the 4 ‘profile…’ fields into a array to loop through them?

This is just an example, there may be anywhere from 2 to 20+ entries!


Hi @seank1968, how exactly do you want your array to look like? Do you need to preserve profile0, profile1, etc.? If so, you could do something like this for example:

This is the result:

Is this what you had in mind?

@MutedJam I only really need the email address but that is exactly what I need - many thanks!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.