Hi Suji,Please follow below conceptsapex:image A graphic image, rendered with the HTML <img> tag. Example
if you need any assistanse, Please let me know!!Kindly mark my solution as the best answer if it helps you.ThanksMukesh<apex:image id="theImage" value="/img/myimage.gif" width="220" height="55"/>
The example above renders the following HTML:
<img id="theImage" src="/img/myimage.gif" width="220" height="55"/>
Resource Example
<apex:image id="theImage" value="{!$Resource.myResourceImage}" width="200" height="200"/>
The example above renders the following HTML:
<img id="theImage" src="<generatedId>/myResourceImage" width="200" height="200"/>
Zip Resource Example
<apex:image url="{!URLFOR($Resource.TestZip, 'images/Bluehills.jpg')}" width="50" height="50" />
The example above renders the following HTML:
<id="theImage" src="[generatedId]/images/Bluehills.jpg" width="50" height="50"/>
#Visualforce10 discussing
- Recent Activity
- Created Date
- Recommended
- All Questions
- Questions with an Accepted Answer
- Unanswered Questions
- Questions with No Accepted Answer
Thank YouRahul​​​​​​​<apex:page standardController="sustain_app__EnergyConsumption__c" extensions="Rg_DistanceCalculator">
<html>
<head>
<style>
⌗map-layer {
max-width: 1500px;
min-height: 550px;
}
.lbl-locations {
font-weight: bold;
margin-bottom: 15px;
}
.locations-option {
display:inline-block;
margin-right: 15px;
}
.btn-draw {
background: green;
color: ⌗ffffff;
}
</style>
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
</head>
<body>
<div id="map-layer"></div>s
<script>
var map;
var waypoints;
function initMap() {
console.log('Init Method..! ');
var mapLayer = document.getElementById("map-layer");
var centerCoordinates = new google.maps.LatLng(39.888250,-83.088370);
var defaultOptions = { center: centerCoordinates, zoom: 8,scrollwheel: true, }
map = new google.maps.Map(mapLayer, defaultOptions);
var directionsService = new google.maps.DirectionsService;
var directionsDisplay = new google.maps.DirectionsRenderer;
directionsDisplay.setMap(map);
var addressArray = {!listOfAddresses}; // Use this format to fill addressArray
var start =addressArray[0];
var end = addressArray[1];
console.log('Start : ',start);
console.log('end : ',end);
setTimeout(function(){
drawPath(directionsService, directionsDisplay,start,end);
}, 2000);
}
function drawPath(directionsService, directionsDisplay,start,end) {
console.log('Drawing Path !!!!!');
console.log(start+' '+end);
directionsService.route({
origin: start,
destination: end,
optimizeWaypoints: true,
travelMode:'DRIVING'
}, function(response, status) {
if (status === 'OK') {
directionsDisplay.setDirections(response);
} else {
console.log('Problem in showing direction due to ' + status);
}
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=*********************************************callback=initMap">
</script>
</body>
</html>
</apex:page>
Mar 16, 11:49 AM Hello, Just add map.fitBounds(response.routes[0].bounds); inside your drawPath function's success callback, right after you set the directions. This uses the route's built-in coordinates to automatically snap the camera to the perfect zoom level that keeps both points on screen. Also, keep an eye on your script URL
There are only 23 calendar days left to prepare for the Spring '26 Release !
Check out Salesforce Spring ‘26 Release: What to Expect and How to Prepare ahead of time to ensure the following features don't break;
- Calculate Tax-Only and Product-Only Price Adjustments
- Escape the Label Attribute of <apex:inputField> Elements to Prevent Cross-Site Scripting in Visualforce Pages
- Update Instanced URLs in API Traffic
- Migrate to a Multiple-Configuration SAML Framework
- Restrict User Access to Run Flows
#Salesforce Developer #Flow #Salesforce Admin #Sales Cloud #Salesforce #TrailblazerCommunity #Salesforce Platform #SAML #Visualforce
@* Salesforce Administrators * @Trailblazer Community Cove @* Salesforce Platform * @* Customer Success * @* Salesforce Developers * @Architect Trailblazers @Salesforce Flow Automation
Dec 17, 2025, 12:32 PM Hello, Spring ’26 Release—now’s the time to prepare.
Review upcoming changes early to prevent broken
I have a problem with accessing individual products on our Marketplace site. It’s built on experience cloud.
The external site is presented in an iframe wrapped in a visualforce page. As a result when a specific products url is clicked rather than go to that product it returns to the home page.
For example to get to the product page for Google Workspace, its link is
https://www.aitechsourcing.com?bf_redirect=%252Fgoogle-google-workspaceHowever when that is clicked the home page not the product page is returned. That page is
https://AITechSourcing.com.
Can anyone offer me recommendations on how to have the specific product pages available to display when their link is clicked?
Thanks.
Pete
#Experience Cloud #VisualForce Page #Visualforce #Iframe Src #IframeDec 28, 2024, 6:22 AM Hi Pete,
Here are a few recommendations that might help resolve this issue:
- Check URL Encoding: Ensure that the URL parameters are correctly encoded. Sometimes, special characters in URLs can cause unexpected behavior.
- Verify X-Frame-Options: Ensure that the external site allows being displayed in an iframe. Some websites set the X-Frame-Options HTTP header to prevent being embedded in iframes. You can check this by inspecting the network requests in your browser's developer tools.
- Use Apex:iframe: If you're not already using it, consider using the apex:iframe component instead of a standard iframe. This component is designed for embedding external content in Visualforce pages and might handle URL parameters better1.
- Update Visualforce Page: Ensure that your Visualforce page is correctly configured to handle URL parameters. You might need to adjust the URL handling logic in your Visualforce page to ensure it correctly parses and redirects to the desired product page.
- Test in Different Browsers: Sometimes, browser-specific behaviors can cause issues with iframes. Test the behavior in different browsers to see if the issue persists.
Jan 29, 5:45 AM ADP TotalSource is a game-changer for managing HR efficiently, and I’ve seen firsthand how it simplifies payroll processing and benefits administration for small businesses. Throughout this post, we covered key aspects like ADP TotalSource Login, ADP TotalSource Features, Payroll and Benefits Management, HR Compliance, and Employee Self-Service.

Feb 2, 7:26 AM Hello,
To stop the footer from repeating, you should
remove the <apex:facet name="footer"> tags from inside the table and place your totals in a separate <div> or <table> immediately following the </apex:pageBlockTable>.This works because the -fs-table-paginate property specifically forces <thead> and <tfoot> elements (which facets generate) to repeat on every page break; moving the data outside the table context ensures it only renders once at the very end of your data list.
Oct 29, 2025, 7:55 AM To move your Visualforce (VF) page callouts to an **asynchronous** model, you must use **`@future(callout=true)`** Apex methods, as direct callouts from synchronous controller actions (like those choice advantage linked to `apex:actionFunction`) are forbidden. The overall architecture requires four steps: 1) The VF page's `apex:actionFunction` calls a new synchronous controller method (`DocumentCallDefaultAsync`). 2) This synchronous method immediately calls a separate static **`@future` method** (in a service class) to execute the actual external web service callout and stores the result (e.g., the JSON string) in a database record (like a custom status object). 3) The VF page uses an **`apex:actionPoller`** to periodically call a second synchronous controller method (`checkCalloutStatus`). 4) This status check method reads the database record; once it confirms the JSON result is present and the status is 'COMPLETE', the poller stops and the client-side JavaScript (e.g., `Tree1()`) renders the tree using the retrieved data.
Nov 5, 2025, 10:43 AM Hello @Stephen A Amison @ E-ZPassFL
,
You can add text-to-speech to your Visualforce page using the Web Speech API. Just include a JavaScript snippet that uses `speechSynthesis.speak()` to read content aloud. Ensure your markup is accessible and compliant with WCAG/508 standards for best results.
Best Regards,
Leah Santos

I am a newbie to Salesforce and have been assigned the following task:
- Create a VF page where the list of users in the system is listed.
- Users should be able to select multiple Users and click on the ‘Reset password’ button. Upon click, Password reset mail should be sent to the selected users.
- Pagination should be available
- Number of user-selected should be displayed as available in Standard list view
</apex:form>
</apex:page>
Controller:public class dataTableCon { List<User> users; public User userForReset {get;set;} public static System.ResetPasswordResult result; public System.PageReference pr; public dataTableCon(ApexPages.StandardController controller) { userForReset = (User) controller.getRecord(); } public Id objSelectedUserId {get;set;} public void handleuserCheckboxChange() { for(User objStudent: users) { if(objStudent.Id == objSelectedUserId){ system.debug('-----This is the selected student record----'+objStudent); } } } public List<User> getUsers() { if(users == null) users = [SELECT Name, Email, UserName, Alias, Profile.Name, UserRole.Name, IsActive FROM User WHERE Username <> NULL]; return users; } public PageReference resetpass() { if (userForReset != NULL) { try{ users = [Select Email FROM User WHERE Id=:userForReset.Id]; Boolean email = true; for(User u : users) { result = System.resetPassword(u.Id, email); } } catch(Exception e) { } pr = Page.ResetPassword; } return pr; }}
Can anyone please help by checking the code for errors?
Nov 3, 2025, 11:29 AM Hello,
This VF page structure incorporates all requirements: data table, checkbox, reset button, count display, and pagination controls.
HTML
<apex:page standardController="User" extensions="dataTableCon" sidebar="false">
<apex:form >
<apex:pageMessages />
<apex:commandButton action="{!resetPasswords}" value="Reset Password" styleClass="btn btn-primary mb-3"/>
<div id="selectedCountDiv" style="font-weight: bold; margin-bottom: 10px;">
{!selectedUserCount} item(s) selected | Showing:
{!((pageNumber - 1) * pageSize) + 1}-{!MIN(pageNumber * pageSize, totalUserCount)} of {!totalUserCount} items
</div>
<apex:pageBlock >
<apex:pageBlockTable value="{!wrappedUsers}" var="wUser" id="userTable">
<apex:column headerValue="Select">
<apex:inputCheckbox value="{!wUser.isSelected}">
<apex:actionSupport event="onclick" reRender="selectedCountDiv"/>
</apex:inputCheckbox>
</apex:column>
<apex:column headerValue="Name" value="{!
}"/>
<apex:column headerValue="Username" value="{!wUser.userRecord.Username}"/>
<apex:column headerValue="Email" value="{!wUser.userRecord.Email}"/>
<apex:column headerValue="Is Active" value="{!wUser.userRecord.IsActive}"/>
</apex:pageBlockTable>
<div style="text-align: center; padding-top: 10px;">
<apex:commandButton action="{!previousPage}" value="Previous" rendered="{!hasPrevious}" reRender="userTable, selectedCountDiv" style="margin-right: 5px;"/>
Page: {!pageNumber}
<apex:commandButton action="{!nextPage}" value="Next" rendered="{!hasNext}" reRender="userTable, selectedCountDiv" style="margin-left: 5px;"/>
</div>
</apex:pageBlock>
</apex:form>
</apex:page>
E-ZPass Delaware
Nov 4, 2025, 9:57 AM Hello @Salesforce Newbee E-ZPass Illinois
,
To show a spinner until your Apex class loads data, use <apex:actionStatus> with <apex:page>'s action attribute. Wrap your content in <apex:outputPanel> and bind it to the action status. Example:
<apex:actionStatus id="loadStatus">
<facet name="start">
<img src="/img/loading.gif" alt="Loading..." />
</facet>
</apex:actionStatus>
<apex:outputPanel id="content" layout="block" rendered="{!NOT(ISNULL(data))}" >
<!-- Your page content here -->
</apex:outputPanel>
Then link it to your action:
<apex:page controller="YourController" action="{!loadData}" >
<apex:form>
<apex:actionFunction name="loadData" action="{!loadData}" status="loadStatus" />
</apex:form>
</apex:page>
This will show the spinner until loadData completes.
Best Regards,
Delia Guzman