Skip to main content
udayasain741
November 14, 2023
Question

show record column based on user filter selection

  • November 14, 2023
  • 2 replies
  • 0 views

HI Team,

I am configuring the record list and i have 2 columns completed by and completed on, I wanted to show these columns only when user selelect user filter completed, How can i pass record filter value to showwhen

    2 replies

    stefanhelzle0001
    Brainy
    November 14, 2023

    The OOTB records based grid does not support that. You would have to implement this in the UI.

    stewart.burchell
    November 14, 2023

    As Stefan says, you'll need to custom code this.

    Add a local variable that will contain which columns are selected (you can default this to hold both values for each column).

    Add a multiple-dropdown that has labels for both columns and values for both columns (values should match those in your local variable).

    For each column you can then use fn!contains() on your showWhen attribute e.g. fn!contains(local!selectedColumns, 1) for Column 1 and similarly for your second column.