How to show hide value in static dropdown list based on condition

  • 8 June 2020
  • 3 replies
  • 120 views

Badge +4

Hi I have a drop down list which is having static dropdown values and  have a condition,if that satisfies then I would need to show additional value

Can it be possible in k2 or using html or JS?


3 replies

Userlevel 5
Badge +13

Try the "Set a control's properties" rule to change the display/Value items when needed

Badge +4

Tried to change control's properties but it is not allowing to change display/value

Userlevel 6
Badge +16

Hi PM1,



I don't know if this will apply to your scenario, it sounds like you will have to do this via SQL store procedure and view rules instead of using static value in the dropdown setup. For example, you can create a stored procedure with parameters that can be exposed via SmartObject. On selecting the value from a dropdown control, you can refresh the values in the dropdown in which calls the stored procedure and fetches in new values.


 


 

Reply