Skip to main content
Known Participant
Jan 22, 2024 6:03 AM UTC
Question

Record Filter List

Used a!RecordFilterList in a record type. It is working fine but a default dropdown option "any" is coming, want to remove it is there any way?

    10 replies

    harshitb6843
    Brainy
    Jan 22, 2024 6:09 AM UTC

    Must be present in your code. If you add your code snippet here, I should be able to tell you where to change. 

    Known Participant
    Jan 22, 2024 6:13 AM UTC

    Sure Harshit sharing the code, 

    a!recordFilterList(
    name: "Sort By",
    options: a!forEach(
    items: { "My Cases", "All Cases" },
    expression: a!recordFilterListOption(
    id: fv!index,
    name: fv!item,
    filter: if(
    fv!index=1,
    a!queryFilter(
    field: 'recordType!{2e997135-ee8a-4fd5-871c-ae8aed18427c}VCMS Workflow Record.relationships.{486f2016-d3fb-4f08-b9e5-0b5bfff29690}workflowCase.fields.{f70e18eb-e2b4-4239-8e75-75355532945c}caseownerid',
    operator: "=",
    value: rule!VCMS_EXP_getUserIdForUserFilter()
    ),
    null()
    )
    ),

    ),
    defaultOption: "My Cases",
    allowMultipleSelections: false().
    )

    harshitb6843
    Brainy
    Jan 22, 2024 6:15 AM UTC

    And can you also add a screenshot of how that "Any" option is visible on your dropdown? Because I suspect it is just a placeholder (a text that appears when no value is selected) it should be fine.