Skip to content

Deprecated since 7.2

This page documents the classic module layer (CBController and cbInit()). It still works in every 7.x release, but new code should use resources and pages.

Use instead: Hidden::make('shop_id').

Hidden Form Type ​

Code Sample ​

php
$this->form[] = ['label'=>'Label Name','name'=>'field_name','type'=>'hidden','value'=>'YOUR_CUSTOM_VALUE'];

By put value attribute, it will force the value to your setted value

What's Next ​

Table Of Contents ​

Released under the MIT License.