I'm trying to set a picklist value in URLFOR.
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 = {!URLENCODE(TEXT(Account.Schedule__c))}, CF00N2a000000b34C = Account.Custom_Number_Field __c])}", "_self");
In the first scenario:
CF00NK0000001jyxH = ''
I receive the following error:
Error: Field Account.Schedule__c is a picklist field. Picklist fields are only supported in certain functions.
In the second scenario:
CF00NK0000001jyxH = Account.Schedule__c
I receive the following error:
Error: Field Account.Schedule__c is a picklist field. Picklist fields are only supported in certain functions.
In the third scenario:
CF00NK0000001jyxH = TEXT(Account.Schedule__c)
I receive the following error:
Error: Field Account.Schedule__c is a picklist field. Picklist fields are only supported in certain functions.
In the forth scenario:
CF00NK0000001jyxH = {!URLENCODE(TEXT(Account.Schedule__c))}
I receive the following error:
Error: Syntax error
Could you please advise how to set a picklist value in URLFOR function?
CF....
fieldnames, if new to the sandbox, may not be the same as you promote into other orgs.