Quantcast
Channel: SCN : Discussion List - SAP GUI
Viewing all articles
Browse latest Browse all 3066

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 3066

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>