Quantcast
Channel: SCN : Unanswered Discussions - SAP GUI
Viewing all articles
Browse latest Browse all 2552

Hiding fields based on entered value

$
0
0

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?


Viewing all articles
Browse latest Browse all 2552

Trending Articles