if statements in record producer script

alithia
Tera Contributor

Hi all - trying to figure out where I've gone astray here.

First one, if statements in the record producer script 'section'. I want to have folks select from a 'select box' (request_type) and then use that to drive what appears in the description box when a task is generated. I've tried several variations of the below but I seem to just get a blank field back on submission. Taking the current.description parts out and using them on their own works fine (basically, I want only the 'change' fields showing when someone submits for change, and 'delete' fields for delete).

If(producer.request_type == 'Change');
{
current.description = "User to Update: " + producer.updatename.name + '\n' + "Systems Required: ";
} 
if(producer.request_type == 'Delete');
{
current.description = "help";
} 
1 ACCEPTED SOLUTION

Mike Allen
Mega Sage

If needs to be lower case (if).

View solution in original post

2 REPLIES 2

Mike Allen
Mega Sage

If needs to be lower case (if).

Of course that was it. Sheesh! Thank you so much!