Skip to main content
Solved

Airtable.com refused to connect message when embedding a view with URL filters.

  • February 21, 2024
  • 2 replies
  • 138 views

Jeri_Vespoli
Forum|alt.badge.img+13

I'm trying to avoid having to add a view for each new coach in a coaching engagements base.  The filtered URL works beautifully in a browser, but when I add it to the embed code in the iframe, it gives me the airtable.com refused to connect message.

<iframe class="airtable-embed" src="https://airtable.com/appNTRWwuGJYQDcYK/shrPcWPXGkhHeb30F/tbl38pqjIpX(rest of code hidden for privacy)&filterContains_Engagement=(First Name)+(Last Name)&filterIsAnyOf_Status=In+progress&filterIsAnyOf_Status=Awaiting+SOW&filterIsAnyOf_Status=Assigned&backgroundColor=blue&viewControls=off" frameborder="0" onmousewheel="" width="100%" height="1000" style="background: transparent; border: 1px solid #ccc;"></iframe>

Best answer by TheTimeSavingCo

As a datapoint, this embed with a filter works fine for me as an embed:

<iframe class="airtable-embed" src="https://airtable.com/embed/appKXtKYYuFC23NRc/shrwCCKFngdvAeJ2d/tblVPK8ZJkjvaJtVn?backgroundColor=cyan&viewControls=on&filterContains_Notes=Test" frameborder="0" onmousewheel="" width="100%" height="533" style="background: transparent; border: 1px solid #ccc;"></iframe>

Wish I could help more, sorry!

2 replies

TheTimeSavingCo
Forum|alt.badge.img+31

As a datapoint, this embed with a filter works fine for me as an embed:

<iframe class="airtable-embed" src="https://airtable.com/embed/appKXtKYYuFC23NRc/shrwCCKFngdvAeJ2d/tblVPK8ZJkjvaJtVn?backgroundColor=cyan&viewControls=on&filterContains_Notes=Test" frameborder="0" onmousewheel="" width="100%" height="533" style="background: transparent; border: 1px solid #ccc;"></iframe>

Wish I could help more, sorry!


Jeri_Vespoli
Forum|alt.badge.img+13
  • Author
  • Participating Frequently
  • August 27, 2024

Thank you @TheTimeSavingCo!  I realized I was missing the 'embed'.  If it helps anyone else, I also added a formula field to our coaches' base to auto-create the embed code for report views.  The relative tables are Coaches and Engagements.  

  1. Create the report view of the Engagements table
  2. Click Share and sync <>Embed this view
  3. Set the view controls to off (if on, the viewer can apply filters to view other people's reports)
  4. Select card or standard layout
  5. Copy the URL 
  6. Create a formula field in the Coaches table with the URL from the embed code and the field names that contain the filter(s) you want to apply 'https://airtable.com/embed/appNTRWwuGJYQDcYK/shrPcWPXGkhHeb30F/tbl38pqjIpX5njGrh?filterContains_Engagement='&First&'+'&Last
  7. Copy the URL from the record of the coach for whom you want to embed the report
  8. Paste the URL into the iframe to embed '<iframe class="airtable-embed" src="https://airtable.com/embed/appNTRWwuGJYQDcYK/shrPcWPXGkhHeb30F/tbl38pqjIpX5njGrh?filterContains_Engagement=Steve+Graef&amp;backgroundColor=blue&amp;layout=card" frameborder="0" onmousewheel="" width="100%" height="1000" style="background: transparent; border: 1px solid #ccc;"></iframe>