Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.
error

We made a wrong turn. Try again.

Hi community, I wanted to redirect the button I created in visualforce page to a create record form. 

In the experience cloud home page. 

 

<apex:outputLink value="{!URLFOR($Action.Application__c.New)}"  

      Apply Now 

    </apex:outputLink> 

 

These code is not working when I published as the attached ss error msg, but works fine when I preview it in my visualforce page, it opens to create record page but in Salesforce classic.  

 

Is it because the visualforce page component in experience cloud has a record id as shown in ss? 

To redirect button in visualforce page to create a record

 

Screenshot 2025-02-27 113920.png

 

Screenshot 2025-02-27 114404.png

 

Screenshot 2025-02-27 115126.png

 

@* Experience Cloud * @* Salesforce Developers *

 

 

#Experience Cloud

1 answer
  1. Feb 28, 3:38 PM

    Hi @Lim Chong Meng, Have you added your Visualforce page?

     

    You can verify this by following these steps in

    Setup:

    1. Navigate to Sites and Domains → Sites
    2. Click on [your-experience-cloud-site]
    3. Go to Site Visualforce Pages → Edit
    4. Ensure your Visualforce page is listed under Enabled Visualforce Pages

    I hope this helps!

0/9000