Bryan VonDeylen Posted October 22, 2004 Posted October 22, 2004 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>
Recommended Posts
This topic is 7698 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now