Skip to main content

#VisualForce Page0 discussing

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-workspace

However 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 #Iframe
2 comments
  1. Dec 28, 2024, 6:22 AM

    Hi Pete,

    Here are a few recommendations that might help resolve this issue:

    1. Check URL Encoding: Ensure that the URL parameters are correctly encoded. Sometimes, special characters in URLs can cause unexpected behavior.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
0/9000

Static resources breaks in Visual Force Page rendered as PDF after changing a file inside the zip and re-uploading

 

I downloaded a working Static Resource used by a VF page and change an image, compressed the folder and re-upload again and ended-up with a not working VF page. None of the images were loading and the css not being applied.

 

I compared with other static resources and noticed a difference in the MIME type of file uploaded file.

The type of my re-uploaded zip file shows as "application/zip" vs the others showing as "application/x-zip-compressed". After many, but many posts reading, I realised this is not the root of the problem

 

Solution: When compressing the file, the individual folders inside the zip needs to be selected and compressed; whereas compressing the whole folder adds an extra folder to the path, breaking the link to the static resource from the VF page, eg.:

  • "myStaticResources.zip/myStaticResources/styles/style.css" instead of
  • "myStaticResources.zip/styles/style.css"

So the formula in the VF page: "{!URLFOR($Resource.myStaticResources, '/styles/style.css')}" won't work

 

Static resources breaks in Visual Force Page rendered as PDF after changing a file inside the zip and re-uploading I downloaded a working Static Resource used by a VF page and change an image, compres

 

Screenshot 2024-04-03 at 08.38.59.png

 

#VfPage  #Host Static Resource  #Upload Files  #Download Pdf  #Visualforce  #VisualForce Page  #Zip File

1 comment
  1. Jul 5, 2025, 7:31 PM

    OMG.  THANK YOU. 

    After hours of troubleshooting this, finally found your tip.  I was zipping up the folder also, and getting 404, pulling my hair out.  lol.  finally fixed.

0/9000

I need to create a report or view that can be printed in a pdf for leadership.  Goal is to create an executive summary of an account or a prospect.  This would include pulling in certain fields from the account, opportunity and case objects.  Any guidance on the best place to start or how to best accomplish this is greatly appreciated.  

  

 

 

#Reports & Dashboards  #VisualForce Page

1 comment
  1. May 2, 2025, 4:43 PM

    After you have created a dashboard with your infos you should pick the botton at right upon the site and click in Download.

0/9000

I want to adjust the multi-select picklist values according to laptop and mobile screen in visualforce page. Since, my picklist value is long and has good number, it is visble in laptop but not visible in mobile. In mobile it's coming totally blank, and when i click on blank box then the picklist value coming from side bar. please let me know how we can control this data values. 

How to control multi-select picklist value

 

#Salesforce Developer #Trailhead Challenges, #Trailhead, #Salesforce Developer, #Data Management, #Sales Cloud, #Service Cloud, #Saleforce Administrator #VisualForce Page

2 answers
0/9000

Hi all,

 

We're currently looking into Topics as a tool to report on various different records that relate to the same topic/category. While on paper, topics looks like a great option, but the reporting is underwhelming? I've created a topics assignment report, and its great we can pull the record IDs for the objects, but we can't do anything else like a cross filter or pull additional fields/details from those records (can't even check the object type). The related list gives a good view, but I want this to be a reporting option?

 

Is there any way to do this? Maybe via a Visualforce page/table maybe? Where we could search for the topic and then it pulls all related records so we can report or export?

 

Maybe there's another way as mentioned above, to report on various records that sit in the same category - anyway, if anyone has been succesful with it, let me know!

#Topics for Objects  #Reports  #Reporting  #Visualforce  #VisualForce Page

10 answers
  1. Dec 4, 2024, 7:30 AM

    I am also searching for a solution to get a report on topics and cases. e.g., Topic X is used on XXXX cases (case ID etc). I've tried to build a custom report type but could not find a solution. 

0/9000

Hi Folks,

 

We have a Conga document generation process that we've customized by forming the URL using inputs from a Visualforce (VF) page. In Conga document generation, there are two options: 'Save to Record' and 'Download.' When using 'Save to Record,' it redirects to the record page once the document is generated. However, when the 'Download' option is selected, it does not redirect to the record page; instead, it stays on the Conga Composer page after downloading the file. Is this the expected behavior, or can we customize it to show a message or redirect to the record page? Please share your thoughts.

#Conga #Conga Composer #Conga Composer Template

1 answer
  1. Nov 6, 2024, 1:18 PM

    Hi Karthikeyan,

    You can try lauching your Conga solution from a screenflow so you would be able to control final behavior thanks to a navigation button.

     

    May I take advantage of this to ask you how you were able to retreive your inputs from Visualforce page? My final template is a Word template and I can't retreive my VF page when trying the {{IMAGE: FieldName}} merge field.

    Thank you for your help

     

    #Conga Composer #VisualForce Page

0/9000
2 answers
  1. Jul 27, 2024, 10:24 AM

    That’s what I was looking for, what an info present here at this website, thank you admin!

0/9000
1 answer
  1. Jun 20, 2024, 5:26 PM

    Hi,

     

    Double-check your logic, The System will do what you have instructed to do. So debug carefully and find the root cause of the issue.

0/9000

Question:-  How can we apply SLDS and custom CSS to a Visualforce page that is rendered as a PDF?

 

Solution:-

 

To use any standard or custom style on the Visualforce page, we need to download the style sheet file and upload it as a static resource. Then we can import the file into the Visualforce page using the <apex:stylesheet > tag.

 

SLDS and custom CSS are uploaded in the static resource.

 

#Salesforce #Salesforce Developer #Communities #VfPage #Visualforce #Pdf Version #VisualForce Page #Pdfview #Short Code

<apex:page renderAs="pdf" docType="html-5.0">

<apex:stylesheet value="{!$Resource.sldsCss}" />

<apex:stylesheet value="{!$Resource.customCSS}" />

</apex:page>

0/9000
3 answers
0/9000