I have created select box variable and give choices under that variable

Srinivasu2
Tera Contributor

Hi Community,

 

I have created select box variable and give 2 choices under that variable like as below

 

Srinivasu2_0-1715012759246.png

 

I have created 'Non-Production Issue" Boolean field in Case table in Native UI, give this field backend value in non-production issue choice variable like as below 

 

Srinivasu2_1-1715013055793.png

 

But when we select "Non-Production QA/UAT Issue" choice in case form from CSM Portal, it will be false in case table

 

Could you please help with code how set true of "Non-Production Issue" Boolean field in Case table

 

Thanks,

Srinivasu

 

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Srinivasu2 I am assuming you are having a record producer Create case where the variable what_can_help_you_with reside. Since you would like to set the value of non_production_issue field on the basis of this variable value, you can take help of record producer script and check the variable value as follows.

if(producer.what_can_help_you_with=='u_non_production_issue'){
current.u_non_production_issue = true;
}

Hope this helps.

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

Just change the values to true / false - that should do it.

JoroKlifov1_0-1715021226026.png

 

Sandeep Rajput
Tera Patron
Tera Patron

@Srinivasu2 I am assuming you are having a record producer Create case where the variable what_can_help_you_with reside. Since you would like to set the value of non_production_issue field on the basis of this variable value, you can take help of record producer script and check the variable value as follows.

if(producer.what_can_help_you_with=='u_non_production_issue'){
current.u_non_production_issue = true;
}

Hope this helps.

Hi @Sandeep Rajput ,

 

I have used the script above, but it is not working

 

I have selected the 'Non-Production QA/UAT Issue' option choice in the case form on the CSM portal

 

Srinivasu2_0-1715044933430.png

 

But it is showing that the Non-production issue field is set to false only in the case table in the Native UI

 

Srinivasu2_1-1715045299058.png

 

I have created a variable below in the Record producer

 

Srinivasu2_2-1715045481003.png

 

Could you please check above screenshots let me know why above script is not working for me and help me with other code if required

 

Thanks,

Srinivasu