use button to add form field

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default use button to add form field

    How do I use button to add form field in the same window? I want when user click button then It show up more text area for them in the same window.
    sweetyp2005 Guest

  2. Similar Questions and Discussions

    1. required field vs disabled submit button.in a form
      I'm trying to make my email field required. Have seen and tried multiple solutions from this forum, with no success. I think it has something to...
    2. Defined text field in form -> subject field in e-mail
      Hi, I have a form on my web site which users send to me by mailto-function. I would like the text they write in a particular text field to...
    3. Button form field. Acrobat St /Prof?
      Has anyone found a way to do what the ButtonImportIcon feature allowed users to do in versions of AR before 6.0? I don't understand how they could...
    4. copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
      I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed...
    5. JavaScript Access to Button in form tags (webcontrol or html button)
      Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of...
  3. #2

    Default Re: use button to add form field

    Make the button a input type="button"
    Write a onclick event handler in javascript

    Or, put the textarea there to start with.
    Dan Bracuk Guest

  4. #3

    Default Re: use button to add form field

    Perhaps a kickstart?




    <html>
    <head>
    <title>show hidden textarea</title>
    <script type="text/javascript">
    function showTextArea() {
    document.getElementById('txtAreaDiv').innerHTML = "<textarea rows='6'
    cols='20' name='textAreaName' id='txtAreaID'></textarea>";
    }
    // -->
    </script>
    </head>
    <body>
    <form action="#">
    Text field 1: <input type="Text" name="txt1" size="30"><br>
    Text field 2: <input type="Text" name="txt2" size="30"><br><br>
    <input type="Button" name="txtArea_switch" value="Show text area"
    onclick="javascript:showTextArea()"><br><br>
    <div id="txtAreaDiv"></div>
    </form>
    </body>
    </html>

    BKBK Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139