Jump to content


Html select field disappears in the edition (dropdown)

dropdown relation select

  • Please log in to reply
6 replies to this topic

#1 dblanco

dblanco

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 December 2012 - 02:20 PM

I have a problem to present a select option, from a relationship based on the edit screen (1-N).

With this configuration:
$this->grocery_crud->set_table('contactos');

$this->grocery_crud->set_relation('id_motivo', 'motivos', 'motivo');
$this->grocery_crud->set_relation('id_usuario', 'usuarios', '{nombre} {apellido}');

$this->grocery_crud->change_field_type('leido', 'true_false');
$this->grocery_crud->change_field_type('fecha', 'datetime');
$this->grocery_crud->change_field_type('fecha_leido', 'datetime');

$this->grocery_crud->edit_fields('fecha','id_motivo', 'nombre', 'email', 'mensaje', 'leido');
$this->grocery_crud->callback_edit_field('leido', array($this,'_leidoo_formato'));
$this->grocery_crud->callback_update(array($this,'_editar_registro'));

I add the image (26122012_1.jpg ) )where you can see that initially presented correctly the edit form. Where in the dropdown is selected "Consulta". But when you click to select other "Motivo" the combo disappears (26122012_2.jpg ).

With another click on the place where it should be the dropdown, you can edit the field, but do not select an option from the database (Table Motivos). As this edition is disabled? (26122012_3.jpg ) It should not be possible to edit the value, select one of the options in the database.
Unable to re-display the html select after these actions.

Using these versions:
Codeigniter 2.0
Grocery Crud 1.3.3
Browser: Mozilla Firefox 17.0.1.

What can be the problem? Thanks for your time and help.

#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 26 December 2012 - 03:27 PM

maybe you have a Javascript error or conflict between scripts?

#3 dblanco

dblanco

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 December 2012 - 03:31 PM

Shows no errors using Firebug.

#4 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 26 December 2012 - 07:17 PM

Or css?

#5 dblanco

dblanco

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 December 2012 - 07:37 PM

The Firebug console shows no problems with css. These are the files that load:
<link href="http://localhost/css/main.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="http://localhost/ass...sen/chosen.css" />
<link type="text/css" rel="stylesheet" href="http://localhost/ass.../flexigrid.css" />
<script src="http://localhost/ass...n.js"></script>
<script src="http://localhost/ass...n.js"></script>
<script src="http://localhost/ass...g.js"></script>
<script src="http://localhost/ass...m.js"></script>
<script src="http://localhost/ass...t.js"></script>

#6 dblanco

dblanco

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 December 2012 - 07:42 PM

Sorry, it was something as simple as the site itself css file. Making the file works, I'll have to look where the problem

<link href="http://localhost/css/main.css" rel="text/css">

#7 Edwin Resendiz Gonzalez

Edwin Resendiz Gonzalez

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 08 September 2016 - 05:35 PM

Hi, I really want to know how to fixed it, because I'm having the same problem in this moment, sorry my english is too bad.







Also tagged with one or more of these keywords: dropdown, relation, select

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users