I'm trying to create a custom button to create a new custom object record. My aim is to use it from my custom object "restricted fund" and create a new "restricted fund payment due" record, automatically populating the record with its name, the name of the related parent record and the account name of the parent record. Using an existing button as a template I've written:
/a0X/e?retURL=%2Fa0X%2Fo &Name=Payment_{!CASE (Restricted_Fund__c.Number_of_Payments_Due__c, 1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,1)}_{!Restricted_Fund__c.Name}
&00N0N00000Gplsw=Contingent &CF01I0N000000hyx3_lkid={!Restricted_Fund_Payment_Due__c.Restricted_Fund_PaymentId__c}
&CF01I0N000000hyx3={!Restricted_Fund_Payment_Due__c.Name}
&0000N0N00000GpltL={!CASE ( Restricted_Fund__c.Number_of_Payments_Due__c ,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,1)} &CF00N0N00000GplsS_lkid={!Restricted_Fund__c.Organisation_restricted_fundId__c}
&CF00N0N00000GplsS={!Restricted_Fund__c.Organisation_restricted_fundId__c}
So far so good but when I deploy it and click on it, nothing happens. any ideas of where I'm going wrong?