- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2016 09:03 AM
I can do this with a client script but I don't think that would work since we need the data updated on the forms daily for an export.
I figure I have to first query the cmn_location table and then add the setValue command but I'm not sure of syntax and how to query through all records.
query (cmn_location) var DM = g_form.getReference('u_district_manager'); | |
g_form.setValue('u_dm_email', DM.email); current.update | |
Also, where can I schedule scripts? I swear there was a module in Fuji for scheduled scripts that would appear after elevating security privileges, but I do not see it in Helsinki.
Thanks!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2016 11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2016 10:24 AM
I just had a thought -- that business rule that I copied is for RITM's that are being inserted, not existing records.
So I bet that if I created a new District record, entered a District Manager and hit Save, the District Manager Email would appear... and sure enough:
EDIT: Nice catch, but it works with the "current.variables" in there -- not sure why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2016 11:21 AM