Standalone Form
Hi all
Sorry to trouble everyone but Im struggling with saving data from a standalone form ( not panels ).
I am saving the data using this
Howver I want to manipulate the 'budget' column to be 1 based on another condition.
I cannot work out how to change the data and it be saved using the above. I tried this:
but it ignores the change.
Am I missing something obvious?
2 Replies
You need to call $this->form->getState() first. Save that to a $data variable. Then manipulate it and ->update($data)
legend, thank you.