I got an error when trying to use
get*field*Options() method
to
field: name[field]
I tried to use:
getName[field]Options() method but it return an error.
How can I make this work?
fields.yaml
temakebum[tema]:
tab: 'Kebaktian Umum & Komisi'
label: Tema
oc.commentPosition: ''
span: full
type: text
temakebum[bacaan]:
label: 'Bahan Bacaan'
oc.commentPosition: ''
span: full
type: dropdown
tab: 'Kebaktian Umum & Komisi'
temakebum[pujian]:
label: Pujian
oc.commentPosition: ''
span: full
type: text
tab: 'Kebaktian Umum & Komisi'
And in the models
public function getTemakebum[bacaan]Options() {
$bacaan = Db::table('mismaiti_mywarta_jadwlibdh')->where('group','umumraya')->pluck('bacaan','bacaan');
return $bacaan;
}
I need to put this several fields in as array into database table.. it is more like the repeater widget.. but the repeater require user to hit add new item button.. i don't want user to hit add new button but i want it there by default
if i use repeater getnamefieldOptions method is work well.. so if i use repeater the method is
getBacaanOptions(){ }
hope i said it clear enough..