Open dannyuk1982 opened 4 years ago
The form widget does not show entries. The below seems to fix it (although there is probably a better way)
In bundles/form/FormWidget.php line 28, change: 'fields' => $this->get('fields', []), to: 'fields' => $this->get('fields', $form->fields()),
bundles/form/FormWidget.php
'fields' => $this->get('fields', []),
'fields' => $this->get('fields', $form->fields()),
also bundles/form/resources/views/widget.blade.php line 13, change <td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $field) }}</a></td> to: <td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $key) }}</a></td>
bundles/form/resources/views/widget.blade.php
<td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $field) }}</a></td>
<td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $key) }}</a></td>
The form widget does not show entries. The below seems to fix it (although there is probably a better way)
In
bundles/form/FormWidget.php
line 28, change:'fields' => $this->get('fields', []),
to:'fields' => $this->get('fields', $form->fields()),
also
bundles/form/resources/views/widget.blade.php
line 13, change<td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $field) }}</a></td>
to:<td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $key) }}</a></td>