The CreatorCon Call for Content is officially open! Get started here.

Auto Populate two field values in short description field on sc_task

tsai25044
Tera Contributor

Hi Experts,

 

Can you help me with small requirement.

 

Need to auto populate two field values in short description field after the request is submitted. Field variables "field_name" "program_request".

When user fills his response against this two fields its should auto populate in the short description field.

I even tried current.short_description =("Field Name")+ current.variables.field_name+ "\n" + ("Program request")+current+variables.program_request ;

 

It's not working , Please can anyone help me its urgent/priority.

 

Thanks,

tsai.

6 REPLIES 6

PankajP
Tera Contributor

Hello @tsai25044 ,

you can do this using business rule

 

(function executeRule(current, previous /*null when async*/) {

	current.short_description="Field Name: " + current.variables.field_name + "\nProgram request: " + current.variables.program_request;

})(current, previous);

 

Please mark this Helpful if it solves your query.

Thanks.

Dipen Wadhwana
Giga Guru

Hi @tsai25044 ,

 

Please check below that you can use in workflow:

current.short_description = "Field Name " + current.variables.field_name + "\nProgram request " + current.variables.program_request

Please mark this response as helpful if your question has been answered