Field that needs to capture in activity always ?

sukran
Mega Sage

We created a new field to track whoever made changes manually in the form

field name is   Manual updated by , its has capture who made changes ( any field changes in the form at first time) in the activity log

but   if we change some other field it doesn't capture the manual updated by in the activity log

how to write a script manual updated by always needs to capture in the activity log ?

7 REPLIES 7

Hi Sukran,



You could have an onLoad client script clearing the content of Manual updated by every time the form loads so it would change to a new value on every form submit.



However, if your requirement if just to have a log of any field changes on the form and who made the change then this is available just by configuring the activity log filter to include all the fields on your form.



Eg. i have a custom field on my form called customer ticket reference, i've just added it to the activity log by clicking configure fields and moving it across in the slushbucket, now whenever the field is changed an entry is added to the activity log as below listing who made the change and the previous and new value.



find_real_file.png


Hi David


could you please help me on scripts to achieve this


Hi Sukran,



You don't need to script it, if you click on the activity filter funnel icon and select configure fields it will open a slushbucket and you can move across all the fields you want to be tracked in the activity log. This way you'll get who made the change, what field was changed and its old and new value.



If you want to use an onLoad script it'll only need to be something quite basic like below. This will mean the field will always appear blank but when the form is saved/submitted it should populate with a value and store that in the activity log.



function onLoad() {


g_form.setValue('u_manual_updated_by', '');


}