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?

2
  • 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

0

Thank you Pranay Jaiswal. I decided to keep the CFprefix

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .