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

m.paniez9292
m.paniez9292

Hi, By default, in the backend, all fields (inputs, textareas, ...,) show datas directly from DB. So, for one of them (an textarea), I would like to change this default behavior in order to make a process before rendering (like dropdown field and their "options") : how can I do that ?

Thanks

FelixINX
FelixINX

I don't know, but Rainlab.Pages don't use DB and it's working well.

m.paniez9292
m.paniez9292

Hi, The solution to change the default behavior is in this link : http://octobercms.com/docs/backend/forms#extend-form-behavior With "Extending form fields", I think we can do it, but, I don't know how : so, if someone can me explain howto. Thanks

m.paniez9292
m.paniez9292

Re, The solution (in the file in controllers directory) : public function formExtendFields($form){ $form->model->; //Code $form->getField('')->value=; } Thanks

1-4 of 4

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