I need to be able to set the form field values of six form fields if the user clicks on "Repeat" so they don't have to re-enter the data in several fields of a large form if the data is repetitive.
This is the javascript I have:
<script language="javascript">
<!--//
function showval(a,b,c,d,e,f,g){
document.arttracking.sono.value = a;
document.arttracking.custno.value = b;
document.arttracking.shape.value = c;
document.arttracking.distributor.value = d;
document.arttracking.imprint.value = e;
document.arttracking.artist.value = f;
}
//-->
</script>
I pass six values to the function here: (the values are filled in with asp values)
<a href="javascript:null(0)" OnClick="showval(<%=request("var1"%>,<%=request("var2"%>,<%=request("var3"%>,<%=request("var4"%>,<%=request("var5"%>,<%=request("var6"%>);">Repeat</a>
I get two errors:
line1
char1
object expected
line26
char9
syntax error
----------------
I'm an asp developer and I only dabble in Javascript. Any help will be greatly appreciated.
Thanks
This is the javascript I have:
<script language="javascript">
<!--//
function showval(a,b,c,d,e,f,g){
document.arttracking.sono.value = a;
document.arttracking.custno.value = b;
document.arttracking.shape.value = c;
document.arttracking.distributor.value = d;
document.arttracking.imprint.value = e;
document.arttracking.artist.value = f;
}
//-->
</script>
I pass six values to the function here: (the values are filled in with asp values)
<a href="javascript:null(0)" OnClick="showval(<%=request("var1"%>,<%=request("var2"%>,<%=request("var3"%>,<%=request("var4"%>,<%=request("var5"%>,<%=request("var6"%>);">Repeat</a>
I get two errors:
line1
char1
object expected
line26
char9
syntax error
----------------
I'm an asp developer and I only dabble in Javascript. Any help will be greatly appreciated.
Thanks