Developer forum

Forum » CMS - Standard features » Item Dropdown - @Code(Current Item)

Item Dropdown - @Code(Current Item)

Nuno Aguiar
Reply

Hi,

 

We have an item with 2 item lists. In the second item list I need a field which options are based on the 1st item list. How can I achieve this?

 

Page Item X

  • Field A (item list)
    • Field A1
    • Field A2
    • Field A3
  • Field B (item list)
    • Field B1
    • Field B1
    • Field B3

 

We would like field B3 to be a dropdown of possible items of Field A. Can we have something like a @Code(CurrentItem.id) or @Code(ParentItem.Id)?

 

Best Regards,

Nuno Aguiar

ItemID.jpg

Replies

 
Nicolai Høeg Pedersen
Reply

You cannot do that - also the item editor does not reload when you change value of first select box. So you would have to do something in a ribbonbar add-in or in a template if in frontend.

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

I figured as much, but thanks for clarifying it.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum