faraichaka59873
faraichaka59873

Hi. Am getting this error when I try to use a repeater field from the onset. I don't know where I am going wrong. If someone can please help? It works fine if I ignore the repeater, save the rest of the fields and then click the entry in the column and use the repeater field then. Here is my code:

For form with repeater <code>

===================================

Form Field Definitions

===================================

fields: coc: label: COC Requested? disabled: false type: checkbox span: auto coa: label: COA Requested? disabled: false type: checkbox span: auto quotes@update: label: Quote No type: relation select: id disabled: true createdby: label: Created By disabled: true type: relation select: concat(first_name, ' ', last_name) span: auto updatedby: label: Updated By disabled: true type: relation select: concat(first_name, ' ', last_name) span: auto items: label: Items type: repeater form: fields: description: label: Pipe Description On Quote type: dropdown emptyOption: -- Select Item -- </code>

And For Model:

<code> public function getDescriptionOptions(){ return Quoteitems::where('quote_id', '=', $this->quotes->id)->lists('description'); } </code>

The function getDescriptionOptions will work fine if I have saved my entries without the repeater field and then go back and use the repeater field after saving it. I know that for some reason, it's seeing my QuoteItems as null, but I don't know how to make it work. Please can someone point me in the right direction. Thank you!

Last updated

1-1 of 1