Different iframe for every user

Is there any way to create unique iframe element for every user of my page?

Wix Editor

Im trying to create a personal financial dashboard for every client that create account on my website. Im in real estate management so i want my clients to see some informations about their properties. E.g. value of theri properties, how many are occupied and how many are empty. Think of a basic investment portfolio tracker or something similar. My data is from looker so i tried using iFrame to present it beacuse i didn’t find a way to display charts in wix and i need advanced formulas that are included in e.g. excel, google sheets. Appriecate every help :slight_smile: And maybe if its possible to create an admin panel to do calculations directly on my site instead of google sheets (i need to be able to use some advanced economic/finance formulas) i’d apprieciate every help in that matter too.

Thank you.

Hello, user2802! I believe it is possible to set up individual iframes for each user. However, since I don’t know the format of the data obtained from Looker or the steps you are taking to embed it in the iframe, I can’t give you a definitive answer. But methods for switching iframe content for each user might include using postMessage() to communicate with the iframe or using rich content elements.

I have just done exactly this. I am pulling the URL from a CMS to a dynamic page.

@ stevemondaymedia

Your code looks ok, but some comments on it.

  1. You probably forgot to wait for DATASET to be ready first.
  2. Showing code on a pic → not best practice.

:wink:

1 Like

@CODE-NINJA good point (async).

1 Like