Saving data does not reset the SELECT drop downs, but that chosen option is then not saved on subsequent saves
- Single Page
Posted 06 February 2012 - 17:11 PM
Basically if you have a select drop down of options, you choose some options, then click Save, the form is reset so all fields go blank ready for the next data entry, BUT the SELECT drop down fields do NOT reset, so the previous data is chosen.
The problem is, if you want to keep this chosen SELECT drop down, so it is the same value as previously, then you will not change it and just click Save. BUT this option is then not saved. So to save the SELECT drop down option you have to change its value before saving everytime.
So there are two options...
1) The SELECT drop down does save the value when you hit save a second time, OR
2) When the form resets the SELECT drop down is also reset forcing the user to choose an option again
Does anyone have any ideas how to fix this?
I was thinking of finding the Javascript that resets this field when you click the small x button next to the chosen option, and calling it after Save, but its all too complicated.
Thanks
Posted 06 February 2012 - 19:44 PM
The first one was from grocery CRUD that I add it as an issue and I fixed it immediately. You can see the FIX at: https://github.com/scoumbourdis/grocery-crud/commit/2f396dce34a04b50a541ca0f5e2449ad2bd8aa9d
And the second one was at the plugin that I also added as an issue ( https://github.com/harvesthq/chosen/issues/483 ) and I will update it to grocery CRUD as soon as the issue is fixed by the developer. It is just an interface really small issue, that doesn't really matters.
Thanks to mention it.
Posted 06 February 2012 - 20:30 PM
Thanks
Posted 06 February 2012 - 21:09 PM
1. You can just make the changes by your self if you see something at the master that you want to add it. ( for example the BUG fix #9 )
2. You can download ALL the project and copy all the files to your project by simply press the zip button at the attached image: [attachment=35:2012-02-06_210425.png] .
Just make sure, that I don't have any incomplete features.
For example now you can safely download all the project and copy the files to your project without any problem ( https://github.com/s.../zipball/master ). I also have
completed the date and date-time and the upload to work to all browsers.
Of course always make sure that you have a backup to your previous release just to have a rollback if something goes wrong (this has to be done in every update/release ).
Posted 07 February 2012 - 09:19 AM
Posted 07 February 2012 - 09:22 AM
Thanks very much
Posted 12 February 2012 - 07:00 AM
but [color=#ff0000]there is also another bug[/color]:
file upload field doesn't clear also after insert
Posted 12 February 2012 - 12:10 PM
Thank you Yasser
Posted 29 April 2016 - 13:15 PM
Posted 22 May 2016 - 02:35 AM
jQuery chosen select doesn't clear properly neither, according to what have been done in Bug fix #9 I added these lines in flexigrid-add.js and datatables-add.js :// jquery chosen select and multiple select$('.chosen-select, .chosen-multiple-select').each(function() {$(this).val('').trigger('chosen:updated');});
This is also valid for the bootstrap theme. I was with the same problem and added the above lines and it worked for me.
Posted 27 August 2018 - 02:26 AM
hello