XSLT - Dropdown menu using last used option

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • richardt
    New Member
    • Aug 2014
    • 4

    XSLT - Dropdown menu using last used option

    Hi,

    I got a XSL question on how to reuse a Dropdown selection,
    My users are selecting an option to process a invoice,
    Option A
    Option B

    How can I use the Last selection of the dropdown menu
    to set as default on next load of the page

    Is this possible?

    Code:
    <xsl:choose>
    							<xsl:when test="$Doption = 'Option1'">
    								<select class="optDisabled" id="Seloption" name="Options">
    									<option value="Option1" selected="selected">Option1</option>
    									<option value="Option2">Option2</option>								
    								</select>
    							</xsl:when>
    							<xsl:when test="$Doption = 'Option2'">
    								<select class="optDisabled" id="SelOption" name="Options">
    									<option value="Option1">Option1</option>
    									<option value="Option2" selected="selected">Option2</option>								
    								</select>
    							</xsl:when>
    							<xsl:otherwise>
    								<select class="optDisabled" id="SelOptions" name="Printer">
    									<option value="Option1" selected="selected">Option1</option>
    									<option value="Option2">Option2</option>								
    								</select>
    							</xsl:otherwise>
    Thanks for your advice
  • richardt
    New Member
    • Aug 2014
    • 4

    #2
    I have found an Example,
    But me as dummy can't get it to work as intended,

    Maybe a issue here, I'm so Beginner level on Java
    I've seen this posted a few times, but I wasn't able to get the code working at all. I need help making this drop down menu save its settings to a cookie, so when the user visits the site again, th...

    Comment

    Working...