Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7338 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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>

This topic is 7338 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.