You need to sign in to do that
Don't have an account?
Sabrina Oliveira 3
Invalid field for SObject
Hi, guys!
I have 2 fields that I'd like to use in my VFP.
Valores_ativos_e_passivos__c is working fine, but when I try to use Ativos_e_passivos__c I receive the Invalid field for SObject error. What am I missing?
Working FINE:
<table>
<h4>
Ativos e passivos
</h4>
{!KYC_Form__c.Valores_ativos_e_passivos__c}
</table>
NOT working:
<table>
<h4>
Ativos e passivos
</h4>
{!KYC_Form__c.Ativos_e_passivos__c}
</table>
I've tried "KYC_Form__r.Ativos_e_Passivos__c" but the error still the same. The problem can be the type of the field?
I have 2 fields that I'd like to use in my VFP.
Valores_ativos_e_passivos__c is working fine, but when I try to use Ativos_e_passivos__c I receive the Invalid field for SObject error. What am I missing?
Working FINE:
<table>
<h4>
Ativos e passivos
</h4>
{!KYC_Form__c.Valores_ativos_e_passivos__c}
</table>
NOT working:
<table>
<h4>
Ativos e passivos
</h4>
{!KYC_Form__c.Ativos_e_passivos__c}
</table>
I've tried "KYC_Form__r.Ativos_e_Passivos__c" but the error still the same. The problem can be the type of the field?
Hi @Sabrina Oliveira 3,
You can use the below tag to display rich text area in the visualforce page.
or can try this one-
Let me know if this was helpful. If it does, please mark it as Best Answer to help others too.
Thanks,
Shubham Raj
Hi @Sabrina Oliveira 3,
I think the issue is related to the referencing of the field. The '__r' notation will be the correct one to use instead of '__c'.
Can you try this one in your code -
{!KYC_Form__r.Ativos_e_passivos__c}
Let me know it worked or not in your case
Thanks,
Shubham Raj.