- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 09:38 AM
Hi Community,
I have created select box variable and give 2 choices under that variable like as below
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
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 11:50 AM
@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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 11:47 AM
Just change the values to true / false - that should do it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 11:50 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 06:40 PM
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
But it is showing that the Non-production issue field is set to false only in the case table in the Native UI
I have created a variable below in the Record producer
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