Skip to main content
January 22, 2024
Question

Record Filter List

  • January 22, 2024
  • 10 replies
  • 0 views

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
    January 22, 2024

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

    January 22, 2024

    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
    January 22, 2024

    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.