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
Vegaln1Vegaln1 

Is it possible to set a field value using URLFOR

{!URLFOR($Action.Opportunity.Clone, Opportunity.Id, [cloneli=1],true)}

 Is it possible to set a value for Opportunity name, for example, in the URLFOR syntax? If so, what would be the syntax for this example.

 

Regards,

jeremyajohnsonjeremyajohnson
I am interested to an answer to this question as well.
Vegaln1Vegaln1

I finally opened a Case with Support and they informed me that the URL method has some issues with setting custom field values and that I could not use this method as I intended. I ended up using a VF page as the solution.

\

I should mention that setting standard SFDC fields seemed to work OK it was just custom fields... and at that.... it was certain custom fields.... that could not be set.

 

Regards,

Message Edited by Vegaln1 on 02-26-2010 05:34 AM
jeremyajohnsonjeremyajohnson
Thank you!
Vegaln1Vegaln1
Not sure although Support didn't mention that option. This is what I was using:

{!URLFOR($Action.Opportunity.Clone,Opportunity.Id, [cloneli=1, opp3 = Opportunity.Name &'Clone ' , CF00N50000001pXb7 = Opportunity.Contract_Created__c = False ],true) } &cancelURL=%2F006%2Fo&ent=Opportunity

 I could set the Oppty Name OK but never could get the 'Opportunity.Contract_Created__c' flag to be set.