Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Navigate internally without reloading in Project workspace

Nolan4
Tera Contributor

Hi, 

I have put this code in the action assignment's client script - 

function onClick() {
    const projectSysId = g_form.getUniqueValue();
    const timestamp = Date.now(); // same as new Date().getTime()
 
    // Construct the proper Financials workspace URL
    var financialsURL = '/now/workspace/project/home/sub/pw-financials/pm_project/' +
        projectSysId + '/' + timestamp +
        '/params/page-name/financials';
 
    // Redirect user to the Financials section
    open(financialsURL, '_self');
}


This is working but the only thing here is, the page is completely reloading. Instead it should just navigate internally from the Details section to the Financials section. 
1 REPLY 1

Nolan4
Tera Contributor

Any help please? TIA