HTML Code Help. Input Fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigjohnuk
    New Member
    • Feb 2007
    • 4

    HTML Code Help. Input Fields

    Hi Guys,

    New to all this. Need your help.

    I am working on a form. I have some input text fields, however I want to pass the value of one of these text fields to a hidden field.

    So lets say I have a field in the form called OLDFIELD. I want to pass the value from OLDFIELD to NEWFIELD.

    so my code may look like

    <input type = "hidden" name = "NEWFIELD" Value = ???????

    Value is to be the OLDFILED.

    Could someone help guide me on this.

    Kind regards


    John
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You'll have to use JavaScript to do this trick for you. Because you do not only have to fill the new field, but also have to remove the old field from the form dunamically.

    Ronald :cool:

    Comment

    • bigjohnuk
      New Member
      • Feb 2007
      • 4

      #3
      Hi Many thnaks for this.

      Do you have some Java Code that I can use?

      I do not need to clear out the old field name as I want the data in both fields.

      John

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Originally posted by bigjohnuk
        Hi Many thnaks for this.

        Do you have some Java Code that I can use?

        I do not need to clear out the old field name as I want the data in both fields.

        John
        Are you trying to pass values between forms? I'm not really clear what your wanting to do and whether Javascript will be sufficient also this is the HTML/CSS forum we may want to move this to a more appropriate forum.

        Aric

        Comment

        Working...