change display field to drop down on checking a checkbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunsom
    New Member
    • Mar 2008
    • 11

    change display field to drop down on checking a checkbox

    i want to change the display field to a drop down when a check box is clicked.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by sunsom
    i want to change the display field to a drop down when a check box is clicked.

    Any details please.....

    Comment

    • sunsom
      New Member
      • Mar 2008
      • 11

      #3
      on checking a checkbox a display field should change to drop down option

      when the user checks a check box that row a columns display field should change to dropp down. plz help!!!!!!

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        Originally posted by sunsom
        when the user checks a check box that row a columns display field should change to dropp down. plz help!!!!!!
        I think you asked this earlier too, but you didn't give any details.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by hsriat
          I think you asked this earlier too, but you didn't give any details.
          Threads merged. Please do not double post your questions!

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by sunsom
            when the user checks a check box that row a columns display field should change to dropp down. plz help!!!!!!
            Post what code you have so far, even if it's just HTML (using [code] tags).

            Comment

            • sunsom
              New Member
              • Mar 2008
              • 11

              #7
              the code is give below...

              [HTML]<ui:checkbox name="check" id="check" onClick="javasc ript: clicker()"/>
              <ui:display-field displayText="Fo rwarder" name="Forwarder " sortable="flase " />
              <ui:dropdown name="Forwarder " id="Forwarder" displayText="Si ngle selection" selectOne="true ">
              <ui:data select="$root/AA/*" idSrc="ID" displayTextSrc= "Forwarder/@Value" selectionSrc="S ELECTED/@Value = 'yes'" defaultValue="1 11" />
              </ui:dropdown>
              [/HTML]

              when check box is clicked in the place of deiplay-field i want the drop down to be activated
              Last edited by acoder; Mar 10 '08, 02:06 PM. Reason: Added code tags

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                Show the HTML version (view source in browser) of this code.

                Do you want to hide the display field and show a drop-down or replace the field with a drop-down?

                Comment

                • sunsom
                  New Member
                  • Mar 2008
                  • 11

                  #9
                  the code is from a tool which uses a customized form of jsp custom tags... i just want a hint as to how to write the javascript for this scenario...

                  Comment

                  • sunsom
                    New Member
                    • Mar 2008
                    • 11

                    #10
                    i want to replace the dis[lay filed with the drop down when the checkbox is selected for a particular row....

                    Comment

                    • acoder
                      Recognized Expert MVP
                      • Nov 2006
                      • 16032

                      #11
                      Originally posted by sunsom
                      the code is from a tool which uses a customized form of jsp custom tags... i just want a hint as to how to write the javascript for this scenario...
                      A hint would be to hide the display field (set style.display to "none") and show the drop-down (set style.display to "block"). The HTML code would give a better idea of how to access those elements using JavaScript.

                      Comment

                      Working...