K2 SmartForms

K2 SmartForms and Cascading Dropdowns

K2 SmartForms and Cascading Dropdowns

As we’ve seen before, K2 SmartForms gives the developer a range of options when it comes to displaying & filtering data. Another good example of this is when your design calls for cascading dropdowns.

K2 SmartForms and Cascading Dropdowns

K2 SmartForms Cascading Dropdowns – 1

There are two possible approaches – one for dropdowns situated in the same view and another for dropdowns that are on different views.

K2 SmartForms Cascading Dropdowns - 2

K2 SmartForms Cascading Dropdowns – 2

For dropdowns situated on different views (on a single form), you simply add a form level rule on the parent dropdown box’s “On Change” event.

K2 SmartForms Cascading Dropdowns - 3

K2 SmartForms Cascading Dropdowns – 3

In the configuration of this rule you drag the parent dropdown control from the context browser into the corresponding filter property on your mapping destination input. By doing this the selected item’s value in the dropdown box will be passed as an input parameter, effectively filtering the child dropdown’s data.

K2 SmartForms Cascading Dropdowns - 4

K2 SmartForms Cascading Dropdowns – 4

For cascading dropdown boxes situated on the same view you can simply set up the filter on the Data Source configuration.

You may also like

One comment

  • Rajkumar July 21, 2015   Reply →

    HI Arno Van Rooyen,
    Whether K2 developer is required to do all the changes in K2. Or Front end designer/K2 Power admin/System admin can do changes in K2. Because K2 is saying even a non-developer can work in K2,as its doen’t required coding.. Can you please advice.

    Change form Label/Add Field/Workflow Email Message/Change workflow Changes even Non Developer can do these changes. So what are the roles done that need to be done by K2 developer.

    Thanks & Regards
    Raj

Leave a comment

PODCAST  |  Why you need to establish a K2 Center of Excellence today

Interview with Arno van Rooyen, CEO, Velocity