L
led
I have this procedure that takes the name of form fields as tested with the
msgbox but i want to replace the name of the form controls with that ex
change the checkbox named C1 by the variable ck and the control named prec1
replaced by variable tx
<!--
sub vb1(Byval ck, byval tx)
msgbox ck & " " & tx
if window.document.fp1.c1.checked=false then
window.document.fp1.prec1.disabled=true
window.document.fp1.prec1.value=""
else
window.document.fp1.prec1.disabled=false
window.document.fp1.prec1.focus()
window.document.fp1.prec1.value="Preço"
end if
end sub
'-->
msgbox but i want to replace the name of the form controls with that ex
change the checkbox named C1 by the variable ck and the control named prec1
replaced by variable tx
<!--
sub vb1(Byval ck, byval tx)
msgbox ck & " " & tx
if window.document.fp1.c1.checked=false then
window.document.fp1.prec1.disabled=true
window.document.fp1.prec1.value=""
else
window.document.fp1.prec1.disabled=false
window.document.fp1.prec1.focus()
window.document.fp1.prec1.value="Preço"
end if
end sub
'-->