This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

JimRed
JimRed

Dear All,

I would like to change form update behavior. I use the following code:

public function update($recordId, $context = null)    
{    

    // Call the FormController behavior update() method    
    return $this->asExtension('FormController')->update($recordId, $context);    
}    

My question:
I have a field, called 'username'. How can I change the value of this field from the function above.
I mean, the user will send some value (e.x: MyName) but in update I would like to change it to YourName.
Is is possible somehow?

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.