- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2017 04:07 PM
Hi helpful friends!
I previous opened a thread with a question to get a date field to auto populate when any change to a form is made, and it worked. However it does not autopopulate if the first thing that is done on the form is to create a new record from a related list on the record. Is this possible?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2017 05:11 PM
Ahh !!
I totally forgot that you are using scoped application
replace the below line
gr.date_reviewed = gs.nowDateTime();
with
gr.date_reviewed = new GlideDateTime();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2017 04:10 PM
Hi Patrick,
Have to writte onload client script to populate date field on form?
This should work.
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2017 04:41 PM
when any change to a form is made, and it worked.
Are you populating the date using a business rule?
If yes is the insert field checked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2017 01:11 PM
I am using a business rule. I did not have "insert checked because I don't want the "date reviewed" field to populate UNTIL something is done to the record for the first time. The issue I'm having is that if the first thing I do is to create a task under my related list, this does not trigger the "date reviewed" field to populate. It does work properly when I make any other change to the form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2017 01:19 PM
Hi Patrick,
When you insert record, then you need to enable "insert" checkbox in your business rule so that date review field is populated during insert also.
Regards,
Sachin