Okay
  Public Ticket #2856849
Default filtering
Closed

Comments

  • Jean-Christian started the conversation

    Hello !

    I wanted to know if it was possible to set a default filter not visible by visitors, the filter could be set in the shortcode?

    The idea would be to use the same table several times, but not with all the information displayed and the user can't remove it via filters on the front office. I will also need it to show or hide a row according to a date (before this date, the row is not visible by the visitor, after yes).

    Waiting for your feedback,
    Have a nice day !

  • [deleted] replied

    Hi Jean-Christian

    Thank you for reaching out to us.

    You can add a filter through the shortcode if you assign one of our placeholders to column settings/filters/predefined filtering value.

    8052151734.png

    If you add %VAR1% as a predefined filtering value to ColumnA, for example, it will load all the data (because the placeholder is not defined in the Placeholders tab above the table). Then, when you add the shortcode like:

    [wpdatatable id=1 var1=150] it will filter the table per columnA with the value of "150".

    I hope this helps, do let us know if you need any further assistance.

  • Jean-Christian replied

    Thank you for your feedback!

    However, with this method the filter is visible to the visitor and he can remove it which doesn't help. 

    Maybe this could be a new feature?

    Do you have a solution also to hide a line before a date?

    Have a nice day!

  • [deleted] replied

    Hi Jean-Christian 

    You can simply remove the filtering option from the table so your clients cannot modify the results.

    7215233119.png