- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2019 01:01 PM
Hey everyone,
I'm a noob and i need help capturing and old value in the comments section onSubmit on a change request table.
Here's what i got,
When i put a '.value' after prev_val, I get an error, and when i run it like this, I get a prev_val as 'undefined' in the comments section after submission. Can anyone point me in the right direction?
thanks for your time
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2019 01:15 PM
Thanks for the quick reply, and no there is no particular reason why I'm trying to accomplish this with a client script rather than a business rule, other than that I'm inexperienced at writing business rules. I want to try what you suggested, but how should I go about doing it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2019 01:06 PM
Is there a specific reason you're doing this on the client? You'd have access to the previous and current value in a business rule. Also, you can show field changes in the activity log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2019 01:15 PM
Thanks for the quick reply, and no there is no particular reason why I'm trying to accomplish this with a client script rather than a business rule, other than that I'm inexperienced at writing business rules. I want to try what you suggested, but how should I go about doing it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2019 01:17 PM
Write an "before" business rule that runs on insert/update for that table. Then just get the previous.field_name and current.field_name and put them in the work notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2019 01:27 PM
Thanks so much for your guidance