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

Hi,

 Ya , table name is correct and function is get executed on click of button as alert pop is shown.

find_real_file.png

Hi Bhagyashri,

small mistake in your script; it should be window.open(url)

url should not have quotes around it since it is a variable

Regards
Ankur

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

Hi,

Not Working yet. 

Hi Bhagyashri,

Since this is quite older post; can you create separate question and give link here

Also share the script you are referring

Regards
Ankur

 

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