October 22, 200421 yr what is the code to create a popup menu based on a value list in custom web publishing (XSL)? I have tried (unsuccessfully) with (Field in db called 'Department' with valuelist called 'Department') <input type="hidden" name="Department.op" value="eq"/> <select size="1"> <xsl:attribute name="name">Department</xsl:attribute> <option value=""> - Select One - </option> <xsl:variable name="department" select="$layout/fml:FMPXMLLAYOUT/fml:LAYOUT/fml:FIELD[@NAME='Department']/fml:STYLE/@VALUELIST"/> <xsl:for-each select="$layout/fml:FMPXMLLAYOUT/fml:VALUELISTS/fml:VALUELIST[@NAME=$department]/fml:VALUE"> <option><xsl:attribute name="department"><xsl:value-of select="."/></xsl:attribute></option> </xsl:for-each> </select>
Create an account or sign in to comment