Adding Dropdown items dynamically.

Hi,

The below highlighted item will should be there and based on the conditions, I have to add additional items to the array/list and finally show all together in the dropdown.

Can someone give me an idea on this request.

Thanks in advance. 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi,

    Can you elaborate your question in detail. The provided details are not sufficient to answer your question. 

    • What are your conditions
    • How do you get those values 
    • Is different set of list to append to existing array based on each conditions
  • Hi,

    By default "Aditional Info Required" should be shown in the dropdown and based on some other conditions, I have to add other items to the dropdown.

    Is there a way to combine these array items dynamically based on conditions and show them in the dropdown?

    a!localVariables(

    local!reviewAI: {"Aditional Info Required"},
    local!reviewAICode: {"AIR"},

    local!reviewRecall: {"Recall"},
    local!reviewRecallCode: {"RCL"},

    local!reviewCancelled: {"Cancelled"},
    local!reviewCancelledCode: {"CED"},

    local!reviewCounselEngaged: {"Relevant Counsel Engaged"},
    local!reviewCounselEngagedCode: {"RCE"},

    a!formLayout(
    contents: {

    a!dropdownField(
    label: "Review Options" ,
    /*choiceLabels: */
    /*choiceValues: */
    )

    }
    )
    )

  • 0
    Certified Lead Developer
    in reply to Hari Kishore Reddy

    Hi,

    What are those conditions. Which Items need to merge based on which conditions. Also please provide how do you get those conditions (is from another dropdown selection? or from rule input) 

    ex: if (condition1 , merge local!reviewAi and local!reviewRecall), if(condition 2, merge local!reviewAI and local!reviewCounsel) etc

Reply Children
No Data