Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Fieldset textarea?
FinlayDaG33k
May 2018
Hii there,
I'm trying to create a form for a contact form.
Currently, my code looks as follows:
```
$fieldset = Fieldset::forge();
$form = $fieldset->form();
$form->add('name','',array("placeholder" => "Your Name", "class" => "form-control"));
$form->add('email','',array("placeholder" => "Your Email", "class" => "form-control"));
$form->add('subject','',array("placeholder" => "Subject", "class" => "form-control"));
```
Now, I want to add a new textarea.
However, I can only find docs on the `Form` class to do this, not for the `Fieldset` class.
Anybody who knows how to do this?
Harro
May 2018
Accepted Answer
Add
'type' => 'textarea'
to the array.
FinlayDaG33k
May 2018
Thanks, worked like a charm
:)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
FinlayDaG33k
May 2018
Harro
May 2018