Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have added new field behalfofagroupofpeoplehowmany(textfield) to an existing form.
And i need to extract that field values with xslt.
<xsl:variable name="records" select="umbraco.contour:GetRecordsFromForm('a22856dc-9d87-44f5-a3dd-27c32cae57d9')//uformrecord[state='Approved']"/> <xsl:variable name="notNullRecords" select="sum($records/fields/behalfofagroupofpeoplehowmany/values[value != '']//value)" /> <xsl:variable name="nullRecords" select="count($records/fields/behalfofagroupofpeoplehowmany/values[value = '']//value)" /> Supporters <strong><xsl:value-of select="$notNullRecords + $nullRecords" /></strong>
Any help please...
Thanks,
Lasya.
Comment author was deleted
yeah guess it's do to the xslt
Old records won't have the behalfofagroupofpeoplehowmany element so check on that instead of the value
Can we check on the field instead of value like this
<xsl:variable name="nullRecords" select="count($records/fields[behalfofagroupofpeoplehowmany = ''])" />
I have edited field name(which contains values) in the form and i have the same problem to display sum of records field values.
Producing 0 instead of 140.
Working with <xsl:variable name="nullRecords" select="count($records/fields[behalfofagroupofpeoplehowmany])" />
Yup that should do the trick
Sorry !
Still not working with <xsl:variable name="nullRecords" select="count($records/fields[behalfofagroupofpeoplehowmany])" />
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
adding new field to existing form
I have added new field behalfofagroupofpeoplehowmany(textfield) to an existing form.
And i need to extract that field values with xslt.
<xsl:variable name="records" select="umbraco.contour:GetRecordsFromForm('a22856dc-9d87-44f5-a3dd-27c32cae57d9')//uformrecord[state='Approved']"/>
<xsl:variable name="notNullRecords" select="sum($records/fields/behalfofagroupofpeoplehowmany/values[value != '']//value)" />
<xsl:variable name="nullRecords" select="count($records/fields/behalfofagroupofpeoplehowmany/values[value = '']//value)" />
Supporters <strong><xsl:value-of select="$notNullRecords + $nullRecords" /></strong>
Any help please...
Thanks,
Lasya.
Comment author was deleted
yeah guess it's do to the xslt
Old records won't have the behalfofagroupofpeoplehowmany element so check on that instead of the value
Can we check on the field instead of value like this
<xsl:variable name="nullRecords" select="count($records/fields[behalfofagroupofpeoplehowmany = ''])" />
I have edited field name(which contains values) in the form and i have the same problem to display sum of records field values.
Producing 0 instead of 140.
Working with <xsl:variable name="nullRecords" select="count($records/fields[behalfofagroupofpeoplehowmany])" />
Comment author was deleted
Yup that should do the trick
Sorry !
Still not working with <xsl:variable name="nullRecords" select="count($records/fields[behalfofagroupofpeoplehowmany])" />
is working on a reply...