I have a custom object called Portal that has a custom field in it called URL.

I also created a visual force page that displays an iframe. This page is displayed in my Portal as a child. I need to take the custom field, URL, from my parent object and display it as the src in my visual force page.

<apex:page StandardController="Portal__c" sidebar="false">
   <apex:iframe src="{!URL}"/>

This is not working. I am getting this error:

Error: Unknown property 'Portal__cStandardController.URL'

Am I going about this the right way? Any help would be appreciated. This is my first time working with SalesForce and I am only working within the GUI. Answers in layman's terms would be appreciated.

This should work : 

<apex:page StandardController="Portal__c" sidebar="false">
   <apex:iframe src="{!Portal__c.URL__c}"/>

Remember Custom field's always have "__c" in end. Always use proper API Namess

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.