If anyone else is presented with this requirement, here is how to do it:
Add the following to the form view "Web Header Content":
</style>
<SCRIPT LANGUAGE = "JavaScript">
function getTimeOffset()
{
var d = new Date();
return (d.getTimezoneOffset());
}
</SCRIPT>
Then, create an Active Link with the following Run Process command line
(where "887470919" is your custom integer field ID):
javascript document.getElementById('arid_WIN_2_887470919').value =
getTimeOffset();
Flush cache and you're all set!
On Wed, Apr 12, 2017 at 11:16 AM, Lyndsay Reese <[email protected]>
wrote:
> Could someone please help me with syntax here? I am not familiar with
> javascript at all, but I need to run this javascript to grab the timezone
> offset: (new Date().getTimezoneOffset());
>
> Here is the syntax I'm currently using in the Run Process of the Active
> Link to put the value into a Remedy field (which results in the "Function
> not supported (ARERR 9369) Error):
> javascript:F(885580926).S(new Date().getTimezoneOffset());
> It seems like the function SHOULD be supported, as they do something
> similar with an active link in this OOB Active Link: RKM:KBI:SearchResults_
> GetCurrChunk
> Run Process command:
> javascript:F(302258823).S(new IntegerType(F(302258813).mChunkPage));
>
> Thank you in advance!
> Lyndsay
>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"