on 02-23-2016 10:26 AM
Hi!
I want to hide two fields based on information user has entered with if script. this is my case:
if (session.findById("wnd[0]/usr/ctxtRF02K-KTOKK").text === "1010" || "1020" || "1030") {
session.findById("wnd[0]/usr/lblRF02K-EKORG").hide();
session.findById("wnd[0]/usr/ctxtRF02K-EKORG").hide();
session.findById("wnd[0]/usr/lblRF02K-LIFNR").hide();
session.findById("wnd[0]/usr/ctxtRF02K-LIFNR").hide();
};
tried also with else if statement entering field values one by one, But the result of this is that the fields are hidden independently of the value entered in the KTOKK text field.
Any ideas?
if (session.findById("wnd[0]/usr/ctxtRF02K-KTOKK").text === "1010" || session.findById("wnd[0]/usr/ctxtRF02K-KTOKK").text === "1020" ) {
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.