Related list action to open a new form

MaharshiC
Tera Contributor

Hi,

 

 

I have a request table and request_item table. The request_item table is coming as a related list in the workspace. I want to create a related list action is the request_item table called upload and when i click on that it will basically redirect to a new form where the request number  from the request table will get auto populated in the new form and there will be an attachment field which will need to be mandatory. Can somebody please provide the  script to do this? 

1 ACCEPTED SOLUTION

@MaharshiC 

try this

function onClick() {
var url = 'https://emcitizendev.service-now.com/x/iem/tqa-workspace/record/x_iem_tqa_work_request/cf0f63f31b6f96103df95314604bcbb9/params/selected-tab-index/1/sub/record/x_iem_tqa_work_request_items/-1_uid_1/params/query/work_request_number%3Dcf0f63f31b6f96103df95314604bcbb9/extra-params/query%2Fwork_request_number%3Dcf0f63f31b6f96103df95314604bcbb9%2FparentTable%2Fx_iem_tqa_work_request%2FparentRecordSysId%2Fcf0f63f31b6f96103df95314604bcbb9';
open(url, '_blank');
 }

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

10 REPLIES 10

@MaharshiC 

Thank you for marking my response as helpful.

I believe I have answered your original question.

Please mark my response as correct and close the thread and the discussion can still continue on this.

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