Appearance
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.
CBController
cbInit()
Use instead: Hidden::make('shop_id').
Hidden::make('shop_id')
How to migrateThe new guide
$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
value