⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

multiple select items on dropdown list



dangkhoaweb
  • profile picture
  • Member

Posted 15 June 2012 - 04:40 AM

Hi guru.

I have some problems:

1/ In the dropdownlist I have the list of nuts for admin to choose: cashew, peanuts, pecan ....
i want when admin add a new reciept: they can choose as many as they want: cashew & pecan ....
how to do that?
2/ In the table in database it has a field called STATUS with 2 values: 1(active) - 0 (inactive)
when I select it and show in the list use grocerygrud it show the value 1 or 0. I want to change that 1 -> active ( text)
how to do that?

Thanks

dangkhoaweb
  • profile picture
  • Member

Posted 15 June 2012 - 05:41 AM

The 2nd question, sorry I solved it by use [i]callback_column[/i]
Some one help me on the 1st question about multiple select on dropdown

Thanks

noskov.biz
  • profile picture
  • Member

Posted 15 June 2012 - 05:57 AM

Hi! I think the set_relation_n_n function will help you.

dangkhoaweb
  • profile picture
  • Member

Posted 15 June 2012 - 07:35 AM

[quote name='noskov.biz' timestamp='1339739835' post='2304']
Hi! I think the set_relation_n_n function will help you.
[/quote]

ok let me try, but how can we add it to the database, I mean after select the list in dropdown?

THanks

dangkhoaweb
  • profile picture
  • Member

Posted 15 June 2012 - 07:59 AM

thanks noskov.biz

I finish it

Best regards,

noskov.biz
  • profile picture
  • Member

Posted 15 June 2012 - 09:04 AM

You are welcome :)