⚠ 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

Dropdown Set Value On Field



nungadi28
  • profile picture
  • Member

Posted 19 April 2018 - 07:53 AM

Hello Everyone,

Im get confuse  :D

 

 

I Have this table

table colorid

id | set_nu | one | two | three

1     23         red   green  blue

 

table savecolor

id | colorchoose

 

 

i am try using set relation

$crud->setRelation('set_nu', 'colorid', '{one}-{two}-{three}');
$crud->displayAs('colorchoose','Color');
 
that success while show red-green-blue on dropdown
 
how to save the color one two three on colorchoose with just one selection ex: i just want pick the red color with set_nu 23
using setfield checkbox after select set_nu
can anyone help me