UI Action (client side) redirect

xiaix
Tera Guru

I have to call a script include to update the record to bypass ACL write rules preventing user, hence the reason gsftSubmit() will not work.

Trying to use "action.setRedirectURL(current)" while still on the client side, but I believe this is only server side functionality.

So, can I reload the form via client due to the UI Action not able to hit server side?

 

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi David,

In client side if you want to redirect/open then use following: give your table name highlighted in bold

var sysId = g_form.getUniqueValue();

var url = '/<tableName>.do?sys_id=' + sysId;

window.open('url');

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi David,

In client side if you want to redirect/open then use following: give your table name highlighted in bold

var sysId = g_form.getUniqueValue();

var url = '/<tableName>.do?sys_id=' + sysId;

window.open('url');

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

find_real_file.png

Hi Ankur,

I am new to ServiceNow and I want to redirect to another page using servicenow. 

I  also ried the same thing for redirecting to another page but its not working. Please help me out.

find_real_file.png

 

find_real_file.png

 

Hi,

 

the alert after window.open() won't show so remove that;

Also is the table name correct to which you are redirecting? u_incidentfieldaudit.do?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader