- 19 May 2025
- 1 Minute zum Lesen
- Drucken
- DunkelLicht
- pdf
Unable to display Whatfix content within iframes
- Aktualisiert am 19 May 2025
- 1 Minute zum Lesen
- Drucken
- DunkelLicht
- pdf
Issue
Unable to display Whatfix content within iframes of an application.
Probable Causes
Element Selection: The application contains elements that are inside multiple layers of iframes, which prevents Whatfix from automatically detecting the required element.
Issues with Load Time: The iframes in your application take an unusually long time to load.
Suggested Solutions
- Depending on the element selected in an iframe application, define the entire path, starting from the element back to the outermost iframe.
For instance, the selected element is a Username field inside the iframe and you want to display Whatfix content on this field. You need to declare the "full path" to the "Username" field. This path includes the iframe it's located in. Think of it as saying: "First, go to the iframe with the ID 'login-area', then, inside that iframe, find the input field with the ID 'username'.
Here's an example code for the Main HTML:
<!DOCTYPE html>
<html>
<head>
<title>Main Dashboard</title>
</head>
<body>
<h1>Employee Dashboard</h1>
<iframe id="login-area" src="login.html"></iframe>
<p>Other dashboard content.</p>
</body>
</html>
Here's an example code for the iframe HTML:
<!DOCTYPE html>
<html>
<head>
<title>Login Form</title>
</head>
<body>
<h2>Login</h2>
<input type="text" id="username" placeholder="Username">
<input type="password" placeholder="Password">
<button>Login</button>
</body>
</html>
- Adjust the App Initial Load Time setting under Technical configurations in the Whatfix Guidance dashboard to accommodate the delayed loading of content within the iframes. For more information, see Configure Extended Load Time for Smart Tips in an Iframe.
If issue persists, contact support@whatfix.com.