Pass value from one form to another using URL params

Waru
Tera Contributor

Hi everyone ,

 

im trying to pass values from one form to another using a UI action in the context menu, but all of the related fields are not being populated only the strings , is there a way to do this ?

 

here is the code

 

var urlStart = '/rm_story.do?sysparm_stack=rm_story.do&sys_id=-1&sysparm_query=';
	var url = urlStart + 'u_related_requested_item=' + current.number
	+ '^description =' +  'ServiceNow Platform'

	action.setRedirectURL(url);

 

 

 

thanks a lot

1 ACCEPTED SOLUTION

I believe the Display vlaue for product table is number. Try passing number corresponding to the 'SerivceNow Platform' product and it should work.

View solution in original post

14 REPLIES 14

Product is reference field 

Is there any record with value 'ServiceNow Platform' in product table? If so, what is the Display value for product table? You can try passing sys_id instead if the record exsits in product table.

Yes there is a value “Servicenow product” inside the field 

I believe the Display vlaue for product table is number. Try passing number corresponding to the 'SerivceNow Platform' product and it should work.

worked excellent thanks a lot