embedded external webpage

  • 1
  • Question
  • Updated 1 year ago
  • Answered
Hi,

Not sure this is simple or not, but i have a feeling I'm missing something..

I'm trying to embed couple different web pages directly into skuid tabs

I want my users to not have to click a button , that in turns, pops a new window with "websearch results"

Example: I have this button to search the business on google:
http://www.google.com/search?q={!Lead.Company},{!Lead.State}

Anyone knows how would I have the result of that link show directly in a skuid page?

Or worse case have the button show in same skuid page the result of search (not pop a new window or open in same window)


Thank you
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
The basic pattern is as follows. 

1. Build a model on Lead that includes company and state. 

2. Put a template component in your page and bind it to your lead model so we can merge data from the model into the iFrame.

3. Add HTML code to the template that looks like this:  with iframe code that looks like this: 

<iframe src="www.google.com/search?q={{Company}},{{Lead.State}}" width="100%" height="450" frameborder="0" style="border:0"></iframe>

The key is that skuid does not use the VF data merge syntax   -  {!Lead.State}  instead we use {{double braces}} or {{{Triple Braces}}} around the api name of the field from your model.  More information on merge syntax here: http://help.skuidify.com/m/11720/l/216661-skuid-template-syntax

Click on the "Allow HTML" box in your template and you will see some preview and know you are on the right track. 

Having said all that,  sometimes google does not like being stuck in an iFrame and so will yell at you.   But good luck. 
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb
Thank you Rob,

But my problem is any webpage I try to iframe either give me a blank page (90% of the time) or i get a standard SF page with url cannot be found (like example you gave me, as no "http://" i guess.. Can anyone confirm they can get this to work with an external webpage?

Thx
Photo of Kris

Kris

  • 190 Points 100 badge 2x thumb
I would like to know this as well. I am also just getting a blank page.