How to create a custom field which will update the activity log and clears the values in it?

Amol Pawar
Tera Guru

Hi All,

 

I have a requirement where I have created a field of string type in a table. I want this field to behave like a journal input field. It should clear the value from it once the form is saved or updated. I have labeled this field as 'Comments'. I have created an 'Activity Log' section for this form. I want to update the activity log by this 'Comments' field value for every update.

AmolPawar_0-1696258645925.png 

AmolPawar_1-1696258827233.png

 

How can we achieve this? This field should clear its value for every update and that value should populate in the activity log of the form.

Any help will be appreciated!

 

Thanks in advance,

Amol

 

4 REPLIES 4

Niklas Peterson
Mega Sage
Mega Sage

Hi,

If you want it to behave like a journal field, why don't you make it a journal field?

 

Regards,
Niklas

Amol Pawar
Tera Guru

Hi @Niklas Peterson,

 

Thank you for your reply, I have one journal field already in the form. But when I added an activity log in the form, that journal field was not visible separately. As you can see in the above question's screenshot, we need to add comments in below activity log. I'm not able to see that comments field separately.

 

Thanks,

Amol

Hi,

Have you configured the Activity formatter to include the new journal field?

NiklasPeterson_0-1696310828160.png

Regards,
Niklas

DanielCordick
Mega Patron
Mega Patron

You want your custom field to have its own activity log?