⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Form fields are locked



ppalmeida
  • profile picture
  • Member

Posted 29 July 2012 - 21:15 PM

Hi, all.

First of all, GroceryCrud is awesome! Congrats.

I'm getting an strange behavior with the "add" form: all fields get locked. Looks like JS field size is "zero". In short: i cant write nothing on the input fields.
Here is the simple code im using, that i copied from the "basic example":


$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('user');
$crud->required_fields('name, email, password');
$output = $crud->render();
$this->_example_output($output);


The fields are correctly generated in the pages. But no browse can edit them.
The table is a very simple user table. The columns name, email and password are simply varchar fields.

Thanks for your help and sorry for my poor english.

noskov.biz
  • profile picture
  • Member

Posted 30 July 2012 - 04:05 AM

Hi, ppalmeida and welcome to the forum!

I think, that is because of you have small typo in you code. It must be:

$crud->required_fields('name', 'email', 'password');