Skip to profile content
if i do that, this happens : [image] my code : $crud->addFields(['nama', 'harga', 'program']); $crud->editFields(['nama', 'harga', 'program']); $crud->setRelationNtoN('program', 'akd_formulirpmb_program', 'akd_program', 'fk_id_formulir', 'fk_id_program', 'nama');
By the way, i deleted “program” columns from akd_formulirpmb table
so i changed my code like this : $crud->addFields(['nama', 'harga']); $crud->editFields(['nama', 'harga']); $crud->setRelationNtoN('program', 'akd_formulirpmb_program', 'akd_program', 'fk_id_formulir', 'fk_id_program', 'nama'); The result still like this : [image] The…
this happening on add/insert. I changed it to int, still not work with the same error :confused: [image]
Ok @johnny , i’ll wait for the next version. Thank’s.
@johnny it doesn’t work if we use it on master detail : [image] But if we open master detail link directly, it works. [image]
i’m sorry @johnny , it works for normal form, but still doesn’t work for master detail form :face_with_diagonal_mouth:
Thx @johnny now i’m able to do it. I need this event “gcrud.form.add-load” to make it work. I hope future GCE have feature like money input mask, because some user type 1.000.000, another user type 1,000,000, and the other type 1000000. We need to make standart for it. For you who expriencing simi…
Hello john. I want to create javascript input mask like this JSFiddle - React, Tailwind, and code Playground How to create it in gc ? I try like this article JavaScript Events | Grocery CRUD - A PHP CRUD Generator Library but doesn’t work. Anyway, you can click on word “this” in my question above :umbrella: …
I think GCE should have ‘radio’ field type.
Maybe it’s a good idea to create config for remove it. Because when i input data like name, email, address, autocomplete is very helpful
yes it works ! Thanks johnny. It will be good think to add this on Laravel 10 installation documentation.
i got another problem. Datetime picker error when using setMasterDetail, but it works when using not in setMasterDetail. [image] Can you help me ?
!!UPDATE!! I try using laravel 9, it works ! Maybe it just laravel 10 problem.
i’m sure it’s CSRF problem, because it works when i “except” any routes. example : protected $except = [ 'admin/customers-management' ]; i except “admin/customers-management” route, then it works. Can anyone help me ? is it laravel or GCE problem ?
Ok thx john. I just need to label the checkbox, i think i will do it with callbackField. How about radio button ? which field type i should use ?
like johnny said above penn, it doesn’t take any options at the moment. Have you tried option : [ ‘N’ => ‘N’, ‘Y’ => ‘Y’, ] it doesn’t do anything..