• Resolved tommasogavioli

    (@tommasogavioli)


    Hi, i’m so very sorry to ask for some help again but i’m struggling with two small things which are driving me crazy.

    FILTERING
    I have two pages with two field groups based multiple form.
    In one page i need to see the results from the form_type=A, in the other page =B.
    this is my short code:

    [pdb_list filter=”approved=yes” filter=”form_type=avviso-53-operatori-economici” fields=”ID,nome_ditta,codice_fiscale,partita_iva”]

    As you can see, i need (absolutely) to show only the approved results, coming from that specific form_type with these fields: instead every result is shown, APPROVED OR NOT. I have some records in my list, to try out some things. Some of them are approved, some others are not. Every result is shown.
    How can i chain this filter and how can i make it work?

    FIELD OPTIONS
    I have this huge form with a lot of multiple checkbox choices.
    This is an example of the options of one field:
    E01: ASSISTENZA TECNICA ALLA GESTIONE E CONTROLLO DEI FONDI COMUNITARI – FONDI NAZIONALI – FONDI REGIONALI::E01, E02: SUPPORTO ALLO SVILUPPO PARTENARIALE – RELAZIONI INTERNAZIONALI – PROGETTAZIONE EUROPEA::E02, E03: MONITORAGGIO::E03

    As you can see i have long value titles and short values (ex. 03). The value is correctly recorded in the database. But what I’d like to show in the list page for users, instead of the value title (too long) is only the value (03). Is there a way to do that using the shortcode?

    Thank you very much

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    First, for your shortcode filters, you need to chain the two filters, you cannot have more than one filter attribute in a shortcode.

    List Shortcode Filters

    For your second question, you need to use a custom template for your list display to do something like this. You would need to look for the field you want to change and then show the value instead of the value title.

    Using Participants Database Custom Templates

    Thread Starter tommasogavioli

    (@tommasogavioli)

    Thank you, but that is the problema. I cannot chain them.
    The ampersend is not linking the two: i’m absolutely sure that i’m wrong but i can’t understand where i make the mistake.

    that is my shortcode to show results from one specific form type that are approved (AND AND):

    [pdb_list filter=”approved=yes&form_type=avviso-53-operatori-economici” fields=”ID,nome_ditta,codice_fiscale,partita_iva”]

    where is the mistake?
    can anybody suggest a (working) correction?

    Thread Starter tommasogavioli

    (@tommasogavioli)

    Nevermind, i solved. When i was pasting the ampercode, i don’t know why, it was duplicating it in the code.
    Solved.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter chaining and options values’ is closed to new replies.