How to embed an iframe inside a VICIdial script
You can embed an iframe in the VICIdial Script Text field to load an external page inside the agent's SCRIPT tab, with live lead data passed as URL parameters using --A--field--B-- tokens.
What embedding an iframe lets you do
An iframe inside the Agent script tab loads a completely separate web page within the VICIdial agent screen. This is the most common way to show a CRM record, a custom order form, or a real-time lookup tool without requiring agents to switch browser tabs. The external page receives the current Lead data as query-string parameters, so it can pre-fill fields automatically.
Basic iframe structure
Paste an HTML iframe tag into the Script Text field. The src attribute is where you combine your URL with --A--field--B-- tokens. Here is the pattern:
<iframe src="https://yoursite.com/page?lead_id=--A--lead_id--B--&first_name=--A--first_name--B--&last_name=--A--last_name--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" width="460" height="290"></iframe>
VICIdial substitutes each --A--field--B-- token before loading the iframe, so the external page receives real lead values.
Which fields you can pass
Any field available in the script variable system can be added as a parameter. Commonly passed fields include lead_id, vendor_lead_code, list_id, first_name, last_name, address1, city, state, postal_code, phone_number, email, comments, campaign, group, gmt_offset_now, SQLdate, epoch, uniqueid, server_ip, SIPexten, and session_id. The complete field reference is in which lead fields you can pull into a VICIdial script.
Sizing and transparency
Set the width and height attributes to fit within the script panel. Using background-color:transparent in the iframe style lets the Script Color field value show through the iframe background, keeping the panel visually consistent. Set frameborder="0" to remove the default border.
Scroll bars and IGNORENOSCROLL
When the script tab contains an iframe, VICIdial may suppress scroll bars on the outer script panel. If your content is taller than the panel, agents will not be able to scroll to see the bottom. To force scroll bars even with an iframe present, add the special variable IGNORENOSCROLL anywhere in the Script Text. See what IGNORENOSCROLL does on a VICIdial script tab for the full explanation.
iframe load flow
sequenceDiagram
participant VICIdial
participant ScriptTab as Script Tab
participant ExternalPage as External Page
VICIdial->>ScriptTab: Substitute --A--field--B-- tokens in src URL
ScriptTab->>ExternalPage: HTTP request with lead params in query string
ExternalPage-->>ScriptTab: HTML page with pre-filled data
ScriptTab-->>VICIdial: Rendered iframe inside script panel
VICIdial-->>Agent: Agent sees external page with live lead dataTroubleshooting iframe scripts
- Blank iframe: the external URL is not reachable from the VICIdial server's network or the browser blocks mixed content (HTTP page inside HTTPS).
- Raw token in URL: a field name typo means the parameter sends the literal --A--typo--B-- string. Check the field list and use the Preview Script link to catch this before going live.
- Content cut off: the iframe height is too small or IGNORENOSCROLL is missing. Add IGNORENOSCROLL to the script or increase the height attribute.
For the full context on how scripts fit into the agent experience, start with the VICIdial agent screen configuration guide.
Want to run VICIdial on a fully managed platform? See pricing for available plans.
Related from VICIfast
- The branded agent webphoneYour logo, your colours, your subdomain - served to your agents.
- Configure VICIdial without the 1998 adminCampaigns, users, dispositions, and schedules on a single modern screen.
- VICIdial Without the Ops - 18 chapters, freeArchitecture, sizing, storage and cost. No email wall on the contents.
About VICIfast
We run VICIdial servers for call centres, so you don’t have to. You get the dialer set up, secured and kept running — we handle the server, the updates and the backups. Bring your own phone carrier; we never resell minutes. From $49 a month per server.
Questions? Call +1 636 556 0022 and talk to someone who runs dialers.
Citing this article
VICIfast Engineering. “How to embed an iframe inside a VICIdial script”. VICIfast LLC, June 24, 2026. Retrieved from https://vicifast.com/blog/how-to-embed-iframe-vicidial-script
Have questions?
Related posts
You might be interested in
VICIfast newsletter
Liked this? Get the next one in your inbox.
We ship the kind of stuff you just read - concrete, numbers-first, no drip. One email when a new post goes live. Unsubscribe in one click.
Comments
No comments yet - be the first.