This topic is locked

copying all fields but one

10/26/2005 11:49:30
ASPRunnerPro General questions
author

Id like to know how to edit or copy a record except one field will change. IT will act like the copy function but I want the top field to be blank everytime i hit submit For example I want to add a record that has all the same info as the previous record say except the serial number. So I want to be able ot hit submit and have all the records in the fields stay there like it would in a copy function but I want the top first field to be blank so I can enter in new data fast. Thanks

Sergey Kornilov admin 10/26/2005

You can add the following code snippet at the very end of ..._add.asp file.

Make sure you replace SerialNumber with correct field name (case sensitive).

<%

if GetRequestForm("copyid")<>"" then

%>
<script>

document.forms.editform.SerialNumber.value = 'Enter serial number';

</script>
<%

end if
%>