streeves
09-05-2003, 05:53 PM
I have a form that has 3 text fields and 1 textarea field. When the User edits the record, the data that was entered and stored in the database is being output into the fields so the User an edit it..
Here's my question. If the user modifies the data in either two of the text fields, I want the data that is displaying in the TEXTAREA field to go blank, forcing the user to input "New Text/Comments" in the TEXTAREA...The TEXTAREA is a required field and if the user changes the "Contract Value" field for example, I want to force them to enter "new comments" about why they are changing it before they submit the form and update the database record.
I know I will have to compare the data in javascript to see if the data is changed in either two text fields, but I'm not sure how to do this and whether to use OnChange, etc in the actual text field tag...
Any ideas are appreciated...
Thanks
Here's my question. If the user modifies the data in either two of the text fields, I want the data that is displaying in the TEXTAREA field to go blank, forcing the user to input "New Text/Comments" in the TEXTAREA...The TEXTAREA is a required field and if the user changes the "Contract Value" field for example, I want to force them to enter "new comments" about why they are changing it before they submit the form and update the database record.
I know I will have to compare the data in javascript to see if the data is changed in either two text fields, but I'm not sure how to do this and whether to use OnChange, etc in the actual text field tag...
Any ideas are appreciated...
Thanks