I would like to have the contents from this custom field, custrecord_mhi_sw_reason_for_rejection, autopopulate onto this field, custrecord14 which is found on the Bill page. I have a workflow setup when a bill is rejected a popup will open to a Rejection Notes page and then the user will enter the Rejection Reason in this field, custrecord_mhi_sw_reason_for_rejection. After the rejection reasoning is entered the contents now live in a saved search. I would like to have the contents from the rejection reason field, custrecord_mhi_sw_reason_for_rejection, also populate in the Bill page in the custom field that I created, custrecord14, how can I accomplish this? I have also attempted creating a script, but I am running into issues when it is deployed, I will attach that as well.
Workflow Used:
Rejection Notes via user input:
Saved Search where the Rejection Reasons live after user input via popup:
Bill Record where where I would want the Reject Reason to go for the appropriate Bill:
Script Used: Attempted to have script auto-populate field.
Script Error: