Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Mar 2003
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    autofill a variable value..

    Hello I am using coldfusion to create a field that will allow one to pick a date from a calendar.

    However, on this form, I am going to have fields for two dates, so, it would be nice if, after a person entered a value for one field, automatically this value got entered into another field..

    I searched the forums and tried using the option suggested below...

    autofill forms

    but could not get the code to work...

    This is what the test page looks like...


    Test page

    I was wondering if I could use javascript somehow to insert a value into the Date field 2 that matched the value selected in Date 1?

    I am attaching the code that is one the page...the initial value portion of Date 2:
    initialvalue="#DateFormat(now(),"mm/dd/yy")#"
    is what I need to populate based on the selection from Date 1


    I guess the answer that I am looking for is how can I insert a variable whose value is dependent on what is picked in Date1 into the value for Date 2...

    I look forward to your insight!
    Attached Files Attached Files
    Last edited by Twelvethman; 10-20-2003 at 08:51 PM.


 

Posting Permissions

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