Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default populate field.

    is there any way where if i select an option (see below) and that when it is
    selected it will put the price of the product below it.... the list would have
    eg 4 items if not more. so when i select item 1 it will say ?1.99 in the
    location <td>****PRICE GOES HERE****</td> below...... I would like to do
    this just in coldfusion and not anything else. (javascript) etc......

    <tr>
    <td></td>
    <td><b>Product:</b></td>
    <td><select size="1" name="test1"><cfoutput query="getproducts"><option
    value="#getproducts.Name#">#getproducts.name#</option></cfoutput></select></td>
    <td></td>
    <td></td>
    </tr>
    <cfoutput>
    <tr>
    <td></td>
    <td><b>Price</b></td>
    <td>****PRICE GOES HERE****</td>
    <td></td>
    <td></td>
    </tr>

    Samurai_Sjakkie Guest

  2. Similar Questions and Discussions

    1. Populate dynamic text field with PHP array
      I would like to be able to dynamically populate a dynamic text field (assuming that's the best component to use) with an array of data from PHP. ...
    2. How to populate drop down list from one field withdelimiters
      Hello How can we populate a drop down dynamically from the database by splitting one row of data . I have data in a field which is seperated by...
    3. Dynamic Drop Down and To Populate a Text Field
      Hello, I have a db with urltitle and ulrlink one is for title the other its hyperlink. I have a dynamic list hooked up to title, but I want the url...
    4. Populate select field and textbox dynamically - no refresh
      Ive got a db table with the fields Product_Name and Product_Price. I want to display a pulldown containing the product names and display the...
    5. Auto populate a field in a form from another table
      Hi Julie, If you are using a combo or listbox to select the RFQ number you can simply add the item number field to the Rowsource query of the...
  3. #2

    Default Re: populate field.

    ColdFusion runs on the server, not the user's computer. You would have to
    reload the page from the server, with the price in the table cell, if you don't
    want to use a client-side script (e.g., JavaScript)

    jdeline Guest

  4. #3

    Default Re: populate field.

    If the select is part of a form that contains other fields, attempting to do this with cold fusion will be incredibly complicated. Why don't you want to use js?
    Dan Bracuk 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