Subject Person and opened for

SumanthMora
Mega Guru

I want to update subject person and opened for based on catalog variable. But the below statement on the record producer is not working . 

current.opened_for = current.variables.req_for.getDisplayValue();

current.subject_person = current.variables.req_for.getDisplayValue();

1 ACCEPTED SOLUTION

AirSquire
Tera Guru

In a record producer, producer is the object holding the values of variables. Therefore, it should be like,

current.opened_for = producer.req_for;

current.subject_person = producer.req_for;

In the below docs link you can find the documentation for record producer:

Populate record producer data and redirect users

  • Use current.*FIELD_NAME* to reference fields on the record being created.
  • Use producer.*VARIABLE_NAME* to reference values entered by the end user.

 

Regards
Air

View solution in original post

2 REPLIES 2

AirSquire
Tera Guru

In a record producer, producer is the object holding the values of variables. Therefore, it should be like,

current.opened_for = producer.req_for;

current.subject_person = producer.req_for;

In the below docs link you can find the documentation for record producer:

Populate record producer data and redirect users

  • Use current.*FIELD_NAME* to reference fields on the record being created.
  • Use producer.*VARIABLE_NAME* to reference values entered by the end user.

 

Regards
Air

Thank you Air.