I have a custom button and when the button is pressed the following javascript is executed:

            CF00N2a000000b34C=Account.Custom_Number_Field __c

If I remove the CF from 00NK0000001jyxH=TEXT(Account.Schedule__c) I receive the following error message:

Error: Syntax error. Missing field name

I do not see what is the reason of such error message.
Could you please advise what I can do to avoid such error message and solve my issue?

  • Probably complaining because it needs single quotes for values which cannot be resolved, try 'CF00NK0000001jyxH='+TEXT(Account.Schedule__c)
    – Raul
    Jan 3, 2019 at 13:40
  • 1
    It works with having CF why you wanna remove it? CF is the prefix for fieldAPIName Jan 3, 2019 at 14:26

1 Answer 1


Thank you Pranay Jaiswal. I decided to keep the CFprefix

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.