Question about Form builder and Form views #2186
undersound
started this conversation in
General
Replies: 1 comment 5 replies
-
Hi,
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all thanks for your wonderful work!
It really is a delight working with it from both a dev and end user perspective.
My questions:
On Version 3.0.0-rc4 I started making modules without the --bladeForm option(https://twill.io/docs/3.x/form-fields/) but since I need to use conditional fields and the sidebar option I want to use the the old form view method. I removed the getForm function from web/app/Http/Controllers/Twill/PageController.php and created a form.blade.php in web/resources/views/admin/pages/form.blade.php but I don't see my body field showing up at admin/pages/1/edit Is there more to it?
I am bit confused about which syntaxt to use for i.e. an input field form.blade.php.
Is it
@formField('input', [ 'name' => 'subtitle', 'label' => 'Subtitle', 'maxlength' => 100, 'required' => true, 'note' => 'Hint message goes here', 'placeholder' => 'Placeholder goes here', ])
or
<x-twill::input name="subtitle" label="Subtitle" :maxlength="100" :required="true" note="Hint message goes here" placeholder="Placeholder goes here" />
or are both possible?
Thanks in advance for any guidance
Beta Was this translation helpful? Give feedback.
All reactions