function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Leonardo GirgentiLeonardo Girgenti 

Custom button for prepopulate Opportunity Type with a value (opp5)

All,
I have the button working 95% .....it creates a child opportunity from opportunity record.
Need help on the passing a specific picklist value from the  "Opportunity Type" field. It should alway be "Cost Extention" on the button. I am nearly there but for some reason it wont choose the picklist value.
I tried ", '. % etc.......
I think it is to do with the fact there is a space on the picklist or that it is a standard field (id is opp5....)
See url:
/006/e?CF00Nj00000090RAi={!Opportunity.Name}&
accid={!Account.Id}&CF00Nj000000A11J6={!Opportunity.Sponsoring_Funder__c}&
00Nj0000008zwUV={!Opportunity.Pact_Company__c}&
00Nj000000903bi={!Opportunity.Prime_or_Sub__c}&
CF00Nj00000090Px4={!Opportunity.Country__c}&
00Nj000000903bP={!Opportunity.Award_Type__c}&
00Nj0000008zsHX={!Opportunity.Implementation_Start_Date__c}&
00Nj0000008zsHh={!Opportunity.Implementation_End_Date__c}&
opp14=Cost Extention -- + {!Opportunity.Description}&
opp5=Cost%32Extention&
retURL={!Opportunity.Id}&RecordType=012j0000000pe0O&ent=Opportunity
Dan ErvinDan Ervin
Try using:
 
&opp5={!URLENCODE(TEXT(Opportunity.Type))}

 
Leonardo GirgentiLeonardo Girgenti
Thanks, but not working. should i replace TEXT with the picklist value I want, correct?
 
Leonardo GirgentiLeonardo Girgenti
Dear Dan, Thanks. Do you have some other alternatives? Still not working, it passes "null" to the field... Thanks in advance for your help. Leonardo