+ Start a Discussion
swetha parameshwarswetha parameshwar 

Can any one tell me how to create a thankyou page in salesforce lightening and which should redirect to the landing page later.

i want to create a lightening page which must be a Thank you page and after this it should redirect to respective home page.
Best Answer chosen by swetha parameshwar
NagendraNagendra (Salesforce Developers) 
Hi Swetha,

You can then include a javascript snipplet at the top of the thankyou page to redirect to another url after 5 seconds.
<script type="text/javascript">
    window.setTimeout("redirectpage();", 5000);    
    function redirectpage(){
    window.top.location.href = 'http://www.redirectpageurl.com';
Hope this helps.

Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.