Can i insert form object and key value together?

Is there a way to insert a new record using a form object's data along with separate key value?
Or do I need to manually write the SQL statement or use the key value pairs changeset?

Hi @dru_nasty :wave:

Definitely possible by using Object.assign like this:

{{ Object.assign(form1.data, {"new":123}) }}

Or using the spread operator:

Let me know how this works for you!

1 Like

Exactly what I needed, thank you!