Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [force.com-sites]

Force.com Sites technology is used to build public facing websites that run on the Force.com platform. The pages of a Force.com Site are built with Visualforce. Force.com Sites is one of the two Salesforce technologies, Site.com being the other, for constructing public facing websites.

1
vote
0answers
15 views

RecordEditForm throwing error on sites with LightningOut when given a record Id

I created a lightning component which has a simple recordEditForm to allow users to edit/create contacts. Using lightningOut, I embedded it in a VF page, and then exposed the page to a Force.com site. ...
0
votes
1answer
37 views

Downloadlink not working for Guest user site

I have created a link on a visualforcepage for Guest user.The link shows correctly with the correct id. When I try to download the link a new page is opened with the error: urlsite/ex/...
0
votes
0answers
20 views

Starting a Process from site? [closed]

I want to start a process from a button from a site. I know I can create the input, for instance, a hidden field that checkbox is set to true when the button on the site is clicked. But this button ...
1
vote
0answers
35 views

ContentVersion file not viewable to Guest Site User

I have Salesforce Files associated with a Contact that I'd like to pluck out the ContentVersion Id in order to display the image on a public-facing Visualforce page (via Sites): <!-- This is ...
1
vote
0answers
20 views

Capture Site URL in APEX [closed]

we have a functionality where users get an email with a link to a Salesforce site (that hosts a VF Page). Once they click on the link in the email it takes that that that site. But I am struggling to ...
1
vote
1answer
29 views

Site guest user profile CRUD missing in a new scratch org

I've got a bitbucket pipeline which creates a new scratch org with the following config and then immediately deploys the source into the scratch org. { "orgName": "MyOrg", "edition": "Developer", ...
2
votes
3answers
181 views

Public Salesforce Site and Security Review

Let's face it. Salesforce Communities is expensive and not for everyone out there. I have a customer who wants to create a customer-facing site where non-logged in users can register themselves and ...
1
vote
0answers
26 views

No Task Reminders when created by Guest User

We have a publicly accessible Site. On that page, visitors are able to submit a form. This will create a Task with a reminder for a specific User. The Problem that I have run into is, that Tasks ...
1
vote
0answers
16 views

Accessing salesforce API from cross domain

We have created a site in salesforce which has access to all our API's and we are trying to use this site from an off platform application. We have added off platform applications base url into the ...
0
votes
1answer
43 views

Why lightning:fileUpload doesn't work on public sites?

I'm using lightning:fileUpload inside a lightning component and I'm testing it on a public site, but when I attach a file/files the modal box with the Done button doesn't show up. When I'm testing ...
1
vote
0answers
42 views

Site with Lightning Component breaks User Locale

I am trying to include a Lightning Component in a Visualforce Page that is accessed via Sites. When previewing to page in the sandbox, it works just as expected, but when accessed through the Site, ...
0
votes
1answer
22 views

Formatting Time after clocks change

Background I have a simple apex function which returns a date time formatted using a time zone: public String getFormattedDatetime() { TimeZone tz = UserInfo.getTimeZone(); return ...
0
votes
0answers
27 views

CustomLandingController seems to be not working when SSO is used for community login

I've a requirement to setup customer community(SSO based Authentication/ No Username-Password login allowed) with few Pages to be displayed if User is coming to community for the first time. Here, ...
0
votes
1answer
37 views

Remove instance name from site url

I am setting up a public site in salesforce, is there any way to hide the instance name from the public site
0
votes
0answers
16 views

Script to add visualforce page to Site 'Inactive Site Home Page'

Is there any way i can automate the process of adding a visualforce page to active sites 'Inactive SiteHome Page' upon creation of sandbox using SandboxPostCopy ?
1
vote
1answer
137 views

Lightning Out: CORS error even after whitelisting force.com site

I have a force.com site. I access one visualforce page from this site. On this vf page is a lightning-out application. All of the lightning-out requirements to run on a vf page has been set: ...
1
vote
1answer
45 views

Custom URL redirect to Community Page [duplicate]

I have a custom url companyname.com. I have a community with the url mydomain.force.com. Now when I enter the custom URL in the browser, it should redirect to community login page. Is there any way to ...
1
vote
1answer
72 views

Apex class 'SiteLoginController' does not exist (scratch org)

I've created over 40 scratch orgs with the following config, without issues. { "orgName": "MyScratchOrg", "edition": "Developer", "features": ["Communities","PersonAccounts","SiteDotCom","...
0
votes
2answers
25 views

Why does my Test Site suddenly have a toolbar with search at the top?

Update: The global header removal on the profile system permissions helped part of it, but there is still a portion of the header that contains the "search" bar and the dark grey, now with a blue ...
0
votes
1answer
33 views

Pre-Populating fields on vf page based on ret URL

I have a vf page tied to a force.com site which is being used at different places on my company website like support FAQ page, new account request etc and I want to pre populate the subject field on ...
0
votes
1answer
34 views

Can JSForce be used in a public site without login?

I want to build a public Salesforce site where I can share my SF Accounts' details with the public without forcing them to login (I know this can be achieved with a controller/ JavaScript Remoting). ...
0
votes
1answer
12 views

Communities Enabled Breaks Our Site in “Force.com Sites”

Does anyone know why a Working Sites (VF) Solution using Guest Access would break when Communities is Enabled? Basically our home page is returning us a generic Error: "Authorization Required You ...
6
votes
1answer
62 views

Scratch Org Site Domain

We've got a public Site.com in our org. When converting and migrating from MDAPI to DX, I noticed even though all the components related to the site were converted and deployed, we still have to go ...
0
votes
1answer
47 views

Files related list on force.com site

I have a related list of files "AttachedContentDocuments" on a VF page (using the tag), which is accessed through a force.com site. This page works as expected for the logged in user. But when ...
0
votes
0answers
19 views

web.config file in Sites

We have some issues with the compatibilities in IE for a page in our Site. Something related to this. After to include the tag <meta http-equiv="X-UA-Compatible" content="IE=edge" /> in the ...
1
vote
0answers
32 views

Visualforce Page Force.com Site - Language Translation By Clicking on a “Change lang Button”

I have a force.com site which I would like to translate the fields name of a form when a button was clicked. What I did so far: I created a basic form I activated the Spanish translation and ...
1
vote
1answer
116 views

Force.com Sites - Lookup Access Error for Guest Site User

I have setup a Force.com Site with access to Visualforce page, however receive an error message when trying to use the Lookup fields on the page. Some troubleshooting I've done so far: Grant access ...
0
votes
0answers
30 views

Volunteers for Salesforce Attempt to de-reference a null object site functionality

I have been having this issue for a few days now and have no idea where else to look. I have implemented Volunteers for Salesforce for a client and so far it has worked...okay. The volunteer portal ...
0
votes
1answer
23 views

Public VisualForce site - Create standard object

I have a visualforce page that I have linked to a public salesforce site. The page contains a form intended to allow the user to create a standard object (Campaign to be specific). My issue is that ...
0
votes
1answer
41 views

Does anybody notice that the object permissions is not applied on public site guest profile?

I built VisualForce page with form to Insert and update account records, it works like a charm, but when I checked account object permission for guest profile, I found there's no read nor create ...
0
votes
0answers
17 views

Guest user CRUD permissions. Remove from Sandbox or Production as well?

On November 30, 2018,Salesforce discovered that guest user CRUD permissions in your Salesforce Sites and Communities could have potentially allowed unauthenticated guest users to retrieve information ...
0
votes
0answers
11 views

How can we include managed package code into a site template which is defined in customer org

We have a managed package with multiple VF pages and these pages are used on Sites. The problem that we are having is that these pages work only if they are placed within the site template which are ...
0
votes
0answers
24 views

Domain not available when creating custom urls in Salesforce Site

I am trying to create custom urls in Salesforce Site. While creating the same, the domain name is not appearing even if I search with the domain, it is not coming up. Basically I am trying to create ...
0
votes
0answers
17 views

Dependant picklist in VF Page with or without using apex controller [duplicate]

I have a custom object and it has two picklists. One of them is dependant on the other. I'm supposed to put these on a vf page. The issue I'm having is that the values of the secondary picklist are ...
1
vote
0answers
26 views

Anyone had a problem with a REST service exposed on a Site after an instance refresh

I have a REST service that I have exposed via a Site called public. It has a URL like this: https://company.secure.force.com/public/services/apexrest/my_service This service is use to receive ...
0
votes
0answers
39 views

Unable to get lightning look and feel for site users

I am using lightning Page in VF using lightning out.The page is added to sites.But when I open the page via link, It shows the components but Look and feel is not of lightning.
0
votes
2answers
78 views

Community Guest User able to create records without create permission

We ran into a scenario where a community (Salesforce Tabs + Visualforce) user opens multiple tabs and is logged out on one tab. When the user goes to another open tab and performs an action on a ...
1
vote
0answers
22 views

Help in Salesforce Site Custom URL setup

We are in the middle of launching a new VF Page site in our Salesforce instance. Site is working if we use the default Salesforce generated site url. (xx.cs.force.com). Now we are planning to use ...
1
vote
1answer
34 views

Product fields are not visible on site?

I have a page which displays the product family picklist. However, the picklist is not visible if I open the page from my site. I have given access to fields on Public Access settings but still its ...
0
votes
0answers
26 views

Permission issue about site and internal user

I have site and guest user is activated in there. In this case, for allowing records creation from guest user, I granted permission to site guest user profile. However, now I saw some weird situation....
0
votes
1answer
20 views

Are there any good resources to learn force.com sites? Like blogs, Video tutorials etc? [closed]

I need to learn force.com sites development. There are no trailheads as far as I know. So are there any blogs or video tutorials to help me learn this?
1
vote
1answer
41 views

How to access files in Public Sites?

I am using below query to get link for files [SELECT ContentDocumentId, LinkedEntityId FROM ContentDocumentLink where LinkedEntityId in (SELECT Id FROM Custom_Object__c where Parent__c != null)] ...
-1
votes
1answer
35 views

Using Merge-fields With force.com site to relate a form to a record [closed]

Project Build a form off salesforce that can be sent to clients to collect information. A user will Send an email off the account record containing a link to the form. The form will allow clients to ...
0
votes
1answer
42 views

Not able to access ContentDocumentLink on Site VF page's Controller(without sharing)

SOQL: [SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = {{reocrdID}}] OR SELECT Id, (SELECT ContentDocumentId FROM ContentDocumentLinks) FROM {{sObjectAPIName}} Where id = {{...
0
votes
1answer
53 views

How to add download functionality for related Files of a particular object record on custom VF Site page?

On Salesforce standard page for a particular record, all related Notes, Attachments and Files are shown under "Notes & Attachments section". I have a similar use case where, where on a VF site ...
2
votes
0answers
24 views

Can you set a quota of API calls for a User/Site?

We are using a public Site to receive webhooks from a number of different system. Some of which are payments systems, one of which is for mass email. On the email system, it's useful to receive ...
0
votes
1answer
23 views

Display VFpage content on Facebook [closed]

Is it possible to display the contents of a VFpage accessible on a public Site on to Facebook as a section?
0
votes
0answers
21 views

How to use the Site class outside of the context of 'Lightning Platform sites'

I am currently creating a webservice to integrate an external website to our salesforce instance. This webservice should create a new portal account user and return the id back to the calling code. I'...
0
votes
1answer
8 views

Site profile doesn't appear to have access to FirstName or LastName on Leads

I have created a public site to create Lead records. It seems as though the site's profile has access to the composite Name field but not the FirstName or LastName fields. Eg: //This doesn't Work ...
2
votes
1answer
40 views

Query for 'Enabled Visualforce Pages' on a Force.com site [closed]

EDIT: I couldn't get the MetadataAPI to agree with me in time to turn this in, as this is just supposed to be a quick page and not take long. Here's what I ended up doing: public List<ApexPage>...