Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Profiterole 232 posts 264 karma points
    May 04, 2011 @ 17:15
    Profiterole
    0

    Get all records with a certain value

    Hi guys, I'd like to display on a page the answers of a form, but only for people who selected the value "Yes" to the publication authorization.

     <xsl:variable name="records" select="umbraco.contour:GetRecordsFromForm('0d84426b-e30c-467d-8c3a-8f92a61d127d')/uformrecord[state
     = 'Approved']//fields//yestopublication[value = 'Yes']"/>

    So, if I understand my code, I get all the records from a specific form. These records must have an Approved state, but after this it doesn't work. I also only want the records with Yes to the field yestopublication.

    Can you help me with this?

  • Profiterole 232 posts 264 karma points
    May 06, 2011 @ 16:54
    Profiterole
    0

    Ok, finaly it's more a xslt problem than a contour one. I succeed with

    1) getting records

    2) using a for-each

    3) using a if

    So, I solved my problem!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies