Variable inputs on a form

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

  1. #1

    Default Variable inputs on a form

    Is it possible to change the option value according to the date? <cfselect
    name='reg_fee'> <option value='pre_01_05'>?190.00 <option
    value='pre_17_06'>?220.00 </cfselect> I'd like the amount of money that
    appears in the input box to change if the date changes - so if someone books
    before May 1st they are charged one price, after, another etc. Could the
    resulting input number then price then be used in a calculation? Would
    appreciate some expert insight.

    colesc8 Guest

  2. Similar Questions and Discussions

    1. user inputs form color change
      I have a form that has a row of fields. I need the user to be able to choose different colors in those fields and then submit the form. The reciever...
    2. Cannot pass form field variable from Flash form to CFC
      hello, could someone please help me with an issue i'm having.... i'm trying to pass data from flash form fields into my coldfusion component...
    3. Building Query criteria dynamically based on Form inputs
      I need to dynamically build a db query based on form inputs; this such a typical thing I am hoping someone can shortcut me to a more elegant...
    4. Multiple Form Database Inputs
      I have a paragraph with multiple html drop down boxes scattered throughout and a hidden field assigned to it for ID puposes. Problem is when I have...
    5. User inputs token from web form
      I have the need to have the web user input a variable from a form field and capture that field information into a token on the web page to be...
  3. #2

    Default Re: Variable inputs on a form

    Is the data [value and price] coming from a query?
    kyle969 Guest

  4. #3

    Default Re: Variable inputs on a form

    Value and price come from an Access database - does this mean I can use a claculated field in the database to genreate the correct figures?
    colesc8 Guest

  5. #4

    Default Re: Variable inputs on a form

    You mean based on a date entered in another field? If so, then yes, doable, but it is a job for JavaScript (client-side processing as opposed to server-side CF).
    BenForta Guest

  6. #5

    Default Re: Variable inputs on a form

    The script for what you need is on page 214 of Danny Goodman's book,
    Javascript and DHTML Cookbook published by O'Reilly.

    Doug
    doug777 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