How to capture the comments updated by end-user on a popup box and update it on the Activity Journal?

Sutapa1
Tera Contributor

On Risk Assessment form during the Awaiting approval state, Onclick of request reassessment button a comment box pops up, we need to capture that comment under the activity journal.
We are able to fetch the comment at Client Side and set it as value on a Custom field using a Client Script and by doing so the comment gets added on the Activity Journal, however we need to capture it without any Custom field.
g_form.setValue("column name",comments);
Looks like the Activity Journal is only capturing the comment via a field on the form, any suggestion to achieve it without any custom field would be greatly appreciated.
Thank you in Advance.

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

It'd be ideal to change the field that the pop-up writes to from your custom field to the comments field. Making that swap along should work.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

we are using a shared environment using domain separation where other teams are also using OOB fields, so we cannot change oob fields mostly.

Hi,

Ok, you can build a before business rule for this domain that when that custom field value changes, copy it to the comments field, then clear the custom field for the next entry.

current.comments = current.u_custom_field;
current.u_custom_field = '';

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!