function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.

Hi,
i want to create a lightening page which must be a Thank you page and after this it should redirect to respective home page.
Thanks
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';
    }
</script>
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.

Thanks,
Nagendra