Client script

Ketan Pandey
Tera Expert

I have created a  display business rule which return the following value

 

g_scratchpad.sitecode=["SIT1001","SIT1002"];

 

i have a written on change cline script, which will be triggered when we select the sitecode on incident table.

 

if following code satisfy then ,

 

if(g_scratchpad.sitecode.includes(newValue);

hide fields

its getting failed

2 REPLIES 2

New Developer_S
Giga Sage

@Ketan Pandey ,

  • Ensure the syntax of the if statement is correct.
  • Check that g_scratchpad.sitecode is properly defined and contains the expected array of values.
  • try to use Use -  console.log(g_scratchpad.sitecode); 

 

if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

it return the value like g_scratchpad.sitecode[0];  //return  "SIT1001"

it return value with quotes ,this is causing the issue