"Add new" in dropdown list (Set Relation)
Posted 11 November 2020 - 05:29 PM
First of all, I want to mention that I am a beginner, trying to figure out some things to make my own project for my small business. I am using Grocery Crud Enterprise with Codeigniter 3.
So, my question is whether there is an easy way to add a function, so you can add a new record to a dropdown list without going to the secondary table.
I have two tables. Income and Type. There is a foreign key between those two tables in the column Type_id.
When I add a new Income, I search the Type_id in the dropdown list. If there is not the type that I want, I would like to add a new type, which will be saved in the Type Table as well, without having to visit the Type Table at all.
By using a "Add new" button in the dropdown list.
P.S. I know that this thread exists (http://www.grocerycr...sert/#entry1458), but because I am a beginner I cannot really make it work)
P.S.2 It would be REALLY HELPFUL, if you could help me add this function to my project, by recommending a new way to do it, or by helping me find which paths and names I have to change from the #4 post of the thread that I attached above)
Thanks in advance! Please help
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users