Skip to main content

Hello,

 

I have requirements where user need to select values (List values) from drop down and values are in a specific order and it can not be changed.

So, once user select a value from drop down, in next row drop down should not show values till he already selected in first row.

Is it possible, hw can I do this task.

 

Thanks,

Mdhusudan

Hi,


 


Yes, I would you would be able to achieve this by using Rules.


For Example:


When drop down list is changed


Populate "next" drop down list(add filter here by passing the ItemID from the datasource of the first drop down list)


 


Here is a link of a similar question, previously posted on how to achieve a dynamic dropdown:


http://community.k2.com/t5/K2-blackpearl/Dynamic-dropdown/td-p/86367


 


More information regarding drop down list control can be found at the links below:


1.


https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#How_Tos/FilterDatawithAnotherControlData/Filter-Data-Another-Control-Data-Default.htm?Highlight=Cascading%20Drop%20down%20list


 


2.


https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#Create/K2Designer/Controls/DropDownList/DropDownListControl.htm


 


Kind Regards


JacoH


Yes thats quite possible. We have done the same in our environment using stored procs and view rules.  We have created parameterised stored procs that are exposed as smart objects. On select of value from a drop down, you can rehydrate the values in the second drop down by passing on that value to the second drop down's smart object, which in turn calls the stored proc and fetches the value. 


Reply