Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
9 years ago

How can I dynamic set data source for field type (Listbox Multi Select)?

The form have two colum. Col A filed type is Itemtype. Col B filed type is Listbox Multi Select. When I chose A, then B dynamic show list . How can I dynamic set data source for field type (Listbox Multi Select)? Thanks.

1 Reply

  • I have never tried to switch the data source of a control (which is what I think you are asking) so I'm not sure if it is possible. Here are some alternative approaches to your problem.
    1. Create a multi select list box for each itemtype. Write client side method hooked to the on change event of the itemtype field. The method will hide all of the list boxes except the list box related to the selected itemtype.
    2. Write client side method hooked to the on change event of the itemtype field. The method will dynamically populate the appropriate list values in the list box.
    3. Create a filtered list that is the complete list of all values for all itemtypes and filter the list based on the itemtype property
    Hope this helps, Dennis