This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Incremental
And what about the use of this function ?
formRenderField('fieldToUpdate', ['useContainer'=>false])
Incremental
No I sticked to your code, I saw an example with this function, but didn't find any good justify in the documentation...
Thanks
mjauvin
You mean this:
$fieldMarkup = $form->renderField($fieldName, ['useContainer' => true]);
What do you not understand?
mjauvin
Incremental said:
I was wondering if there is a difference with this function :
Not sure, but I think the one you reference is when you don't have the Form widget object. it basically does the same thing.
mjauvin
If you look at the source code, one calls the other:
public function formRenderField($name, $options = [])
{
return $this->formWidget->renderField($name, $options);
}