Trying to open a new request form with a client script of a UI Page

JensHappeningIT
Giga Guru

I am trying to open a new request form with the code of a client script for a UI Page:

 

Screenshot 2023-11-22 141308.png

 But this is my result:

Screenshot 2023-11-22 141500.png

 Can someone help me?

 
1 ACCEPTED SOLUTION

Samaksh Wani
Giga Sage
Giga Sage

Hello @JensHappeningIT 

 

For sc_request new record, it should open a catalog form of Request Item.

 

 

replace your above script with mine:-

 

function openRequestForm(){

var url="catalog_home.do?v=1&sysparm_catalog=e0d08b13c3330100c8b837659bba8fb4&sysparm_catalog_view=catalog_default";

g_navigation.open(url)

}

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

 

 

View solution in original post

1 REPLY 1

Samaksh Wani
Giga Sage
Giga Sage

Hello @JensHappeningIT 

 

For sc_request new record, it should open a catalog form of Request Item.

 

 

replace your above script with mine:-

 

function openRequestForm(){

var url="catalog_home.do?v=1&sysparm_catalog=e0d08b13c3330100c8b837659bba8fb4&sysparm_catalog_view=catalog_default";

g_navigation.open(url)

}

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh