Hi,
I have a search result column where I'm using the record ID to pass parameters as a link to a non-netsuite external site I own that is designed for a specific non-NetSuite task.
The link is working great and the formula looks something like this:
'<a href="http://www.somesite.com/example_tool.php?internalID='||{internalid}||'&key=some:key:forVerification" target=\"_blank\">Use Tool</a>'
However, I'd like to add some script to it by using onClick, and each time I've tried this either I get back invalid expression or the script seems to get stripped out of the link.
I've added what should just be a simple alert window with the record id as a test like this:
'<a href="http://www.somesite.com/example_tool.php?internalID='||{internalid}||'&key=some:key:forVerification" target=\"_blank\" onClick=\"alert('||{internalid}||');\">Use Tool</a>'
but using the dev tools to inspect this the search result shows up like this:
<a href="http://www.somesite.com/example_tool.php?internalID=123456&key=blah:00:buxqod" target="\"_blank\"" onclick="">Use MT Tool With Tracking</a>
I'd like to track something simple like which user clicked the link and what day it was, but I'm starting to think that this might not be possible.
Has anyone ever tried doing something like this before?
Is there a better way to do this?
Thanks in advance for any help.