How to redirect from one Web page to second Web Page as Email parameter in the URL | Adobe Higher Education
Skip to main content
Level 2
October 13, 2023
解決済み

How to redirect from one Web page to second Web Page as Email parameter in the URL

  • October 13, 2023
  • 3 の返信
  • 1127 ビュー

Hi Community,

 

I have created two web pages and storing the date in two different schemas, from the fist web page i have only email field when the user fill and submit this need to redirect second page and in the second page have email field and some other fields but the email will came from first page and it should be auto filled when it redirect to second page.

 

Please suggest and solution 

Thank You

このトピックへの返信は締め切られました。
ベストアンサー Marcel_Szimonisz

Hello @rudrapraveenkumar ,

you can pass submitted form parameters via  query parameters onto second page.

?email=myemail

If you want to be extra you can encrypt the data and decrypt them on the second landing page

 

 

Marcel Szimonisz

3 の返信

Marcel_Szimonisz
Community Advisor
Community Advisor
October 13, 2023

Hello @rudrapraveenkumar ,

you can pass submitted form parameters via  query parameters onto second page.

?email=myemail

If you want to be extra you can encrypt the data and decrypt them on the second landing page

 

 

Marcel Szimonisz

AkshayAnand
Community Advisor
Community Advisor
October 17, 2023

Hi @rudrapraveenkumar 

 

You can create a redirection page using JSSP. I have created a simple CTA button to land me to the next page. 

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body style="overflow-y: hidden; padding-left: 1px; padding-right: 1px; min-height: 0px;" class=""> <form autocomplete="off" class=""> <div class="section"> <div class="emphasis-small">What would you be interested in?</div> <textarea name="descrip" class="input" id="myInput" onblur="document.controller.setValue('/ctx/vars/@varName', this.value );"></textarea> <button class="btn-primary" id="btn-error" onclick="document.controller.submit('next', '_self', 'next');myFunction()" type="button">Submit</button> </div> </form> <script type="text/javascript"> function myFunction() { location.replace("https://your2ndwebappURL?id=<%= escapeUrl(cryptString(ctx.recipient.@id)) %>&name=<%= ctx.vars.@varName %>") } </script> </body> </html>

 

In the 1st WebApp I have created a variable in Properties tab>> variables tab as varName in which i am storing the text field input which you can use as the parameter in the 2nd webapp.

 

The webapp which i create is a simple one with page containing the above pasted code.

For the 2nd redirect Webapp I defined a parameter in the properties tab>> Parameters

with a simple webapp template as below :-

 

1st webapp 

Once clicked on submit button I got redirected to 2nd webapp..

Hope this helps.

 

Regards

Akshay

Sukrity_Wadhwa
Community Manager
Community Manager
October 26, 2023

Hi @rudrapraveenkumar,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!

Sukrity Wadhwa