After implementing the code snippet below, I successfully managed to create a stylish Link with parameters that directs users to a specific page:
<style>
.fancy-link{
color: #FFFFFF;
text-decoration: none;
transition: all 0.3s linear;
-webkit-transition: all 0.3s linear;
-moz-transition: all 0.3s linear;
border-radius: 4px;
border: 1px solid black;
background: #0080FF;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 0px;
width: 100px;
height: 10px;
font-size: 15px;
font-weight: bold;}
.fancy-link:hover{
color: #F44336;
padding-left: 10px;}
</style>
<html>
<a class="fancy-link" name="View" id="View"
href="'||'https://XXXXXX-sb1.app.website.com/app/common/custom/custrecordentry.nl?
rectype=142&id='||{internalid}||'"target="_blank">Check-In</a>
</html>
While this solution works well, my actual objective is to trigger a button click event/element at the specified URL (mentioned in the href attribute) without redirecting to that page. Is there a way to achieve this functionality? Any sample code snippets demonstrating this would be greatly appreciated.
.<input type="button" style="" class="rndbuttoninpt bntBgT"value="Check-In" id="custpageworkflow157" name="custpageworkflow157"onclick="try{
if (!!window) {
var origScriptIdForLogging = window.NLScriptIdForLogging;
var origDeploymentIdForLogging = window.NLDeploymentIdForLogging;
window.NLScriptIdForLogging ='CUSTOMSCRIPT_STICK_USER_PREFERENCE';
window.NLDeploymentIdForLogging= 'CUSTOMDEPLOY_STICK_USER_PREFERENCE';
}
try{
NS.Workflow.buttonClick('custpageworkflow157');
}
catch(e){
document.location = addParamToURL(addParamToURL(addParamToURL(document.location.href,'workflowbutton','157'),'workflowbuttoninstanceid','84083'),'workflowbuttonobsoletehandling','T');
}
}
finally{
if (!!window) {
window.NLScriptIdForLogging = origScriptIdForLogging;
window.NLDeploymentIdForLogging = origDeploymentIdForLogging;
}
}
;
return false;
"onmousedown="this.setAttribute('_mousedown','T');
setButtonDown(true, false, this);
" onmouseup="this.setAttribute('_mousedown','F');
setButtonDown(false, false, this);
" onmouseout="if(this.getAttribute('_mousedown')=='T') setButtonDown(false,false, this);
" onmouseover="if(this.getAttribute('_mousedown')=='T') setButtonDown(true, false, this);
" _mousedown="F">