Conditional/User-Specific Embed Code

Hello!

Thank you for taking the time to read this post!

We are trying to embed iframes into a client portal. The iframe is a Clickup dashboard embed. The embed needs to be specific to the user - so the user only sees their company’s Clickup dashboard. The iframe looks and works fantastically using the custom code block, BUT it is not user specific.

How can we make an iframe user/company specific? Typically, we use the conditional filter setting with other dynamic blocks. However, the custom code block doesn’t have that option (and you would still need to call the specific Airtable field in the custom code)

In Airtable, we’ve added a new field for the iframe URL where we’ll add each company’s respective iframe code for their dashboard. But how do we call this properly inside of Softr?

Any help would be greatly appreciated. Thanks again!

Hi @FEStudios and welcome to the community!

The way to do this is typically to pass parameters into the embed, by putting them on the URL that the iframe is loading. This is very much dependent on the thing being embedded.

So your path looks like:

  1. Read the ClickUp docs to find out how to pass in parameters on the URL
  2. Figure out where in the Softr page the parameter’s values live
  3. Add them to the URL in the iframe

It’s also possible that the ClickUp embed gets parameters a different way, not on the URL. That’ll be in their documentation.

If you can find out the answers to #1 above and then post the raw HTML/JavaScript you’re using in the custom code block, then we can help you with syntax.

Hi there! Trying to solve the same but in order to save that into a Cognito form, they do pre populate forms through urls, but I don’t know how to pass the logged in user email onto the code url.

Any thoughts or guidance?

Ty!

That’s good.

So the way this works is they give you some code (HTML and maybe CSS and JS) that you would put into a custom code block, and then modify it so that it contains the logged in user email.

Can you please copy and paste the code they give you into a reply here?

Thank you @dcoletta !

For example:

They did mentioned me this over email:

*Cognito forms can be prefilled when they are embedded but to set this up like you’re describing there would need to be some custom JavaScript to pull the data from Softr into the Cognito Form.

We don’t currently offer support on the specifics of setting this up since the details vary greatly from case to case. I am including a link below to our User Guide related to prefilling forms though:*

Much appreciated any help/guidance you can provide, thank you!

Hey all,

Just bumping this for any other solutions.

In short, we have embed code as an Airtable field and we need it to be conditional like most other Softr blocks. Ex. This user only sees the embed/code intended tied to their Airtable record.

Softr doesn’t offer ‘conditions’ on the custom code block yet. As previously commented, this has nothing to do with the connecting embedded service because these embed links are just public links.

Thank you!

1 Like

@asc570 Were you able to figure this out? Having the same issue right now.