Hide/Show Separate forms on button click

Hi - I am having issues getting two third-party forms to display at different times.

I have the two forms embedded as iframes right now, and they both appear correctly. However, I want the page to load without any forms showing. Then when the user clicks on a button for NEW or RETURNING, the corresponding form shows below it - with the ability to switch to the opposing form if need be.

I have tried using hide/show interactions, tabs, and jquery to get this to work. I am very new to front end dev so I am certain there is something I am missing. What is the best way to go about achieving this sort of interaction?

Thank you in advance!

The forms will only show on the published site:
https://tomball-german-fest-2-0.webflow.io/returning-vendor-application

Here is my designer link:
https://preview.webflow.com/preview/tomball-german-fest-2-0?utm_medium=preview_link&utm_source=designer&utm_content=tomball-german-fest-2-0&preview=d53759121bde8287387b0b268342e98e&pageId=5f29c9a7be62f1b1fa7a2efb&mode=preview

Hi @KDub

So it should be pretty simple to do it with the interactions built into webflow…

You need to add a mouse click interaction to each of the buttons and then set it up as follows (as an example i will use the new customer form):
this would be first click interaction

  1. set hide/show initial state for the new customer form embed to “none”
  2. set hide/show new customer form as show “block”,
  3. at the same time set set hide/show returning customer form to "none, (so if it is on screen it will be hidden)
    this would be the second click interaction:
  4. set hide/show for the new customer block as “none”

repeat the same for the returning customer button interaction.

if you want to have some sort of animations you can add opacity changes and some sort of transform… (make sure you add the initial state for all the animations)
Screen Shot 2020-08-15 at 2.15.40 PM

Thank you for this!

I was able to get the interaction working the way that I wanted, however the embedded code does not show. I set a background color for each embedded element to see how the interaction works.

I am wondering if something is not working correctly with the embedded code when the Display properties are toggled. Is there another solution to getting the code to run and show?

Thank you again!