0

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

window.parent.open(
    "{!URLFOR(
        $Action.Custom_Object__c.New,
        null,
        [
            CF00M0N00000OpQRx=Account.Name, 
            CF00NK0000001jyxH=TEXT(Account.Schedule__c), 
            CF00N2a000000b34C=Account.Custom_Number_Field __c
        ]
    )}", 
    "_self");

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 at 13:40
  • 1
    It works with having CF why you wanna remove it? CF is the prefix for fieldAPIName – Pranay Jaiswal Jan 3 at 14:26
0

Thank you Pranay Jaiswal. I decided to keep the CFprefix

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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