Is there any easy way to pass parameters from a form on 1 page to another | Community
Skip to main content
mona_jain
New Participant
October 16, 2015
Solved

Is there any easy way to pass parameters from a form on 1 page to another

I am newcomer to AEM.

I have a form on 1 page and based on what the user selects here, i need to make the content on the next page visible or not. What is an eacy way to do that.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
PaulMcMahonAccepted solution
Level 8
October 16, 2015

If the number of variations is small the most common way would be to use a selector (/content/site/en/page2.option1.html or /content/site/en/page2.option2.html). 

Selectors are cachable and probably the best solution for what you have described. 

You just need to make sure you whitelist your selector in dispatcher to prevent DDOS attacks.  

3 replies

mona_jain
mona_jainAuthor
New Participant
October 16, 2015

Thanks

Translate
PaulMcMahonAccepted solution
Level 8
October 16, 2015

If the number of variations is small the most common way would be to use a selector (/content/site/en/page2.option1.html or /content/site/en/page2.option2.html). 

Selectors are cachable and probably the best solution for what you have described. 

You just need to make sure you whitelist your selector in dispatcher to prevent DDOS attacks.  

Translate
smacdonald2008
Level 10
October 16, 2015

As Orotas pointed out selectors is a good way. See this community article for more information:

http://www.citytechinc.com/us/en/blog/2013/08/apache-sling-selectors-request-parameters.html

Translate