Questions tagged [formhelper]
145 questions
8
votes
4 answers
cakePHP value for empty option
is there a way to pass a value for the empty option in a select dropdown generated by the FormHelper?
I'm creating an input like this:
echo $this->Form->input('supplier_id', array('empty'=>true));
with values supplied automatically from the…

Devin Crossman
- 7,454
- 11
- 64
- 102
6
votes
2 answers
Creating 'select' listboxes using FormHelper in CakePHP
I have two models, Category and Point. The associations are defined as:
Category hasMany Point
Point belongsTo Category
I would like, when adding Points to my database, to be able to select the category it belongs to from a

joec
- 3,533
- 10
- 60
- 89
6
votes
2 answers
Cakephp 3 multiple custom template formhelpers
So I'm at work (working with sensitive data might I add for posterity's sake), and the powers that be decide we need to use the all powerful and least documented new tool by Cakephp 3.0 (beta at this time).
Edit: My goal is to create several…

Urasquirrel
- 1,461
- 1
- 18
- 34
6
votes
1 answer
How to auto-submit Rails formhelper, when onchange occurs on select dropdown (populated from DB)
I have a form in my View with two dropdowns, both populated from db tables, where I'd like to auto-submit the form when onchange event occurs on either dropdown:
<%= form_for @products, url: products_path, method: :get do |f| %>