How can I send and receive data from one page to another on service portal

Muhammad Ahsan
Tera Contributor

there is a requirement that I have a public registration form on employee center portal and when submitting it, page redirects to another page where I want to show case number, which was created while submitting form, how can I achieve this.

1 ACCEPTED SOLUTION

Paul Curwen
Giga Sage

The easiest method would be to pass it in the url. On the destination page your widget can then parse the url for the required information. 

 

For example:

 

In the initial page use somethign like:  ?id=my_destination_page&sysparm_record=(insert passing information here e.g. sys_id etc)

 

then on the destination page access the info passed using: 

 

var passedInfo = $sp.getParameter('sysparm_record');

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

View solution in original post

1 REPLY 1

Paul Curwen
Giga Sage

The easiest method would be to pass it in the url. On the destination page your widget can then parse the url for the required information. 

 

For example:

 

In the initial page use somethign like:  ?id=my_destination_page&sysparm_record=(insert passing information here e.g. sys_id etc)

 

then on the destination page access the info passed using: 

 

var passedInfo = $sp.getParameter('sysparm_record');

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul