Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving focus to another select box in XSL

Status
Not open for further replies.

amillia

Programmer
Nov 14, 2001
124
US
I need to write a vb script that when the select box named LSP in an XSL page is set to JKW then focus must go to another select box named LMB and the user should not be able to leave the LMB box until something is entered or value is not null. I don't want the LMB box to even be available until the LSP box is set to JKW. It should either be disabled or invisible. Any help would be appreciated. Thank you.
 
sub check_aspa()
dim val
If document.lsp.option.value = "jkw" AND document.lmb.option.value > 0
then
msgbox "You Must enter a lmb with an jkw "
document.lmb.option.select
stat.cancel
end if
end sub

my problem is that I am using fields from an XSL form and I am not exactly sure how to put them into the function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top