Display variable in text field

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Display variable in text field

    Here's the code: <input type="text" name="myDate" id="myDate" value="#strDate#">

    Not sure why this doesn't work.
    Instead of the value of the variable, I get the variable name in the text box
    '#strDate#'

    I have other pages where i am diplaying variable values in text boxes, for
    example here's one the works on another page:
    <input type="text" name="Markup" value="#Markup#">

    I don't see any differences in the code.

    timrande Guest

  2. Similar Questions and Discussions

    1. i want to display all the data in the database to the text field
      Well, I have 5 data in the database list(gDatabase), i want to display them all on the member("datafield").. when I used the repeat function, it...
    2. Radio btn makes text field equal value of different text field
      What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The...
    3. help with dynamic text field display
      hi all i have a movie clip within my main timeline that is controlled by three buttons. each click on one of these three buttons, executes a...
    4. display text field based on the selection choices
      I want to display credit card fields when the user selects the option paid membership. If user selects the option free membership, then the credit...
    5. unable to display public text field of object in ArrayList in a bound DataGrid
      I have a very simple public class X, whose fields are all public. I create an ArrayList that contains a series of instances of X. Then I bind a...
  3. #2

    Default Re: Display variable in text field

    Use:

    <input type="text" name="myDate" id="myDate" value="<cfoutput>#VARIABLES.strDate#</cfoutput>" />
    Aegis Kleais Guest

  4. #3

    Default Re: Display variable in text field

    You need to use cfoutput:-

    <cfoutput>
    <input type="text" name="Markup" value="#Markup#">
    </cfoutput>
    Stressed_Simon Guest

  5. #4

    Default Re: Display variable in text field

    thanks, yep..needed the cfoutput... and i had cfoutput much higher up on the other page..and missed it easily...thank you..

    timrande 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