function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
westofoxleywestofoxley 

output values not displaying force.com url

Hello,

 

I have built a VF page that works fine when I view it from the edit mode "https://c.ap1.visual.force.com/apex/....." 

 

but when I view it as a standalone page "http://xxxxx.force.com/....." it doesn't display any of the output values.  All the css is working fine and the structure....

 

I need to use the page as an iFrame on my Joomla site.

 

This is an example of what I am trying to output:

 

<apex:outputField value="{!ue.Additional_Day_1_Month__c}"/>

 Is there anything I need to do to enable a page to be used within an iFrame on an external server?  

I have enabled the security to web profile etc.

 

Thanks

 

Joe

 

westofoxleywestofoxley

Ok I have worked out something (the problem).  

 

The problem is that the custom fields aren't showing when not logged in.  Do I need to do something to enable a new field in a campaign?  

 

Thanks.

 

Joe

westofoxleywestofoxley

Ok I have gone back to basics.

 

<apex:page standardController="Campaign">
 
  <h1>This is: &nbsp;<span style="color:red;"><apex:outputField value="{!Campaign.Additional_Day_1_Info__c}"/></span></h1>

</apex:page>

 This works fine in my preview https://c.ap1.visual.force.com/apex/TestFields it outputs:  This is:  Day 1

 

 

When I view it from http://proteuscentre.force.com/TestFields it outputs:  This is:

 

So it is not outputting the custom field value.  What are some reasons for this?

 

I would appreciate any help on this one, it has been doing my head in.

 

Thank you in advance.

 

Joe