⚠ 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

Add form layout question



ylow

ylow
  • profile picture
  • Member

Posted 20 September 2013 - 08:42 AM

Hi all

 

In the add form of the film_management example the field Actors is displayed as a multiple select box and the Category field as a multiple select dropdown list. I cannot understand where this layout is decided.

I mean, for instance, how could I make both fields appear as dropdown lists? 

 

Thanks,

Ylow


briggers

briggers
  • profile picture
  • Member

Posted 20 September 2013 - 09:12 AM

Hi ylow

 

The 7th, optional parameter in set_relation_n_n() is named priority

If you include this and have a priority, (rank or order) column in your relation table then you will get the multi select box which allows changing the order of the items selected. If you omit this parameter you get a dropdown list


davidoster

davidoster
  • profile picture
  • Member

Posted 20 September 2013 - 20:19 PM

Thanks [member=briggers]!


ylow

ylow
  • profile picture
  • Member

Posted 21 September 2013 - 08:20 AM

Hey davidoster, I should be the one that thanks briggers!  :rolleyes:


davidoster

davidoster
  • profile picture
  • Member

Posted 21 September 2013 - 22:09 PM

I meant for helping out [member=yslow]! ;)

It's good to see that people here help each other and not only the same old people keep on answering questions!


briggers

briggers
  • profile picture
  • Member

Posted 22 September 2013 - 08:08 AM

Hey, Don't fight over it

It's good to see that people here help each other and not only the same old people keep on answering questions!

 

Isn't that the whole idea :rolleyes:

 

Actually this is one of the best support forums I've used for many years


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 24 September 2013 - 09:54 AM

Welll to be very frank.. this is the only forum i am active on .. :) This is a big credit to the whole community in all!!