Partial Update on a Object

The problem I have is that when I’m trying to use partial update to add fields to the ferias_form_fields variable this field is outside the object

Hi, you need to differentiate these variable types:

Array : list of items identified by an unique index (number)

Object : list of items identified by a key (can be anything)

Here your variable is of type object but all of your data is stored at the key 0, I don’t know how the rest of the data is filled in the variable but there is an issue here. Either change the variable type to an array if you want to store multiple object of same type with its associated data (example : array of forms where every forms has it’s own data) OR you want to only store the data of one item (one form that will be the root of the object variable) then use an object variable.

Hope it help,
Hugo

1 Like