# Redirect from last button within iFrame

**URL:** <https://community.feathery.io/t/redirect-from-last-button-within-iframe/539>\
**Category:** Support\
**Created:** [March 9, 2024, 9:01pm UTC](https://community.feathery.io/t/redirect-from-last-button-within-iframe/539 "2024-03-09T21:01:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudstacks](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@cloudstacks](https://community.feathery.io/u/cloudstacks)\
**Post date:** [March 9, 2024, 9:01pm UTC](https://community.feathery.io/t/redirect-from-last-button-within-iframe/539/1 "2024-03-09T21:01:04Z")

</div>

Hello,

My booking Iframe accepts the appointment time and then sends the user to a confirmation of the appointment details at which point they click on the button to confirm the appointment.  
The booking app does give me the option of redirecting to another page however I would prefer to apply some logic to display one of two thank-you pages created in Feathery depending on the questions that were answered. Is this possible?

---

<div class="post-metadata">

**Author:** ![summep](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@summep](https://community.feathery.io/u/summep)\
**Post date:** [March 11, 2024, 8:30pm UTC](https://community.feathery.io/t/redirect-from-last-button-within-iframe/539/2 "2024-03-11T20:30:06Z")

</div>

Hi Chris, you can create hidden fields to store the value of the questions answered, and actually add the redirect step directly for your embedded Calendly instead of setting a redirect url in the booking app.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/feathery/original/1X/eeaf8ae554a25fe9010725f04303b21b4465c3a8.png)

In order to redirect to different thank-you pages, you can create two containers with different redirect steps, and show them conditionally based on the value of the hidden fields you set up earlier. [Here is the doc](https://docs.feathery.io/platform/build-forms/logic/show-elements-conditionally) on how to set conditional display logic.

Let us know if you have any further questions. Thank you.

---

<div class="post-metadata">

**Author:** ![cloudstacks](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@cloudstacks](https://community.feathery.io/u/cloudstacks)\
**Post date:** [March 11, 2024, 7:43pm UTC](https://community.feathery.io/t/redirect-from-last-button-within-iframe/539/3 "2024-03-11T19:43:56Z")

</div>

Hi Thanks for the reply

What if the third party scheduling app is not Calendly?

![](https://canada1.discourse-cdn.com/flex030/uploads/feathery/original/1X/328e472721a93345801ed5533240eac2d1f8498c.gif)

---

<div class="post-metadata">

**Author:** ![summep](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@summep](https://community.feathery.io/u/summep)\
**Post date:** [March 11, 2024, 9:04pm UTC](https://community.feathery.io/t/redirect-from-last-button-within-iframe/539/4 "2024-03-11T21:04:47Z")

</div>

If you would like to set the redirect url in the app, maybe consider combining the thank-you pages into one and conditionally show the content based on your hidden field values. The redirect url can be directing to this combined step.
