[eluser]web-johnny[/eluser]
[quote author="skergetd" date="1327519407"]Hello, first of all: Great WORK! Thanks...
I have a little question. I have a relation like this...
Code:
$crud = new grocery_CRUD();
$crud->set_table('offer');
$crud->set_relation('coun_ID','country','coun_title');
And now when user wants to add na offer, he selects a country from a dropdown. But what if there is no country that he would like to select? Then he has to add it...
Could i somehow create a button ADD next to dropdown? Or maybe a field in a dropdown that says ADD RECORD? I have been looking everywhere for that, but found nothing.
Code:
callback_field
could kinda do what I want, but if I use it, I can get my button at the end of field, but then there is no dropdown.
Thanks if you could help[/quote]
Hello @skergetd,
Actually there are some persons that create an add button at the right of the drop-down list but there is not anywhere as an extension or a sharing code.
Till now it is not available to do something like that so you have to change the library and probably some views to do it.
You can have a try and see how it goes and for any questions or any stack you can post a question to this forum or to the grocery CRUD forum.