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
Michael SchellMichael Schell 

Custom field not showing on VF page

I've created a custom field on a custom object that I'm referencing on my VF page and its not showing up. I basically had a field there that i've re-created with the same field level security and view field accesiblity but for the life of me, can't figure out why the original field works and this one will not. Anything else I can check? I'm not receiving an error in VF so I know the field is referenced correct, has to be some setting? 

Field that works: {!rfp.Order__r.Customer__r.Name}
Field not working: {!rfp.Order__r.Customer__r.Customer__r.Co_Op_Name__c}

Any thoughts would be much appreciated, thank you. 
Pradeep Kumar L.GPradeep Kumar L.G
Can you post your apex code, before that make sure if this (Customer__r.Customer__r.Co_Op_Name__c)  field is included in your soql.

Thanks
Pradeep

Mark this answer solved if this helps.
 
Michael SchellMichael Schell
Here is what i'm seeing. I went to the field operational scope and there only 5 fields showing. I thought maybe there was a field set of the object being used but i'm not seeing anything. Anything helps, thank you!




 // Grab all fields for Account (Customer).
    Map fieldsAccountMap = Schema.SObjectType.Account.fields.getMap();
    for( String key : fieldsAccountMap.keySet() ) {
      proposalFields += ',Order__r.Customer__r.' + key;
      proposalFields += ',Vendor__r.Account.' + key;
    }