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
mallikharjunarao gundamallikharjunarao gunda 

click on clone button populate the field values, i got an error

Error: Enter a URL that is valid and well-formed

 i tried to this code

{!IF({!Opportunity.parent__c}=null,https://ap2.salesforce.com/{!Opportunity.Id}/e?clone=1&retURL=%2F{!Opportunity.Id}&00N2800000FJLEz="{!Opportunity.Name}",{!Opportunity.parent__c})}
 
mallikharjunarao gundamallikharjunarao gunda
URL
mallikharjunarao gundamallikharjunarao gunda
i used URL
karthikeyan perumalkarthikeyan perumal
Use Below Update code.
 
{!IF(Opportunity.parent__c==null, 
URLFOR($Action.Opportunity.New,null,[clone=1,id=Opportunity.Id,retURL="/"&Opportunity.Id],true), 
Opportunity.parent__c
) 
}

Thanks
karthik

 
mallikharjunarao gundamallikharjunarao gunda
Got an error
Error: Syntax error. Found '/' see this code

{!IF(Opportunity.parent__c==null, 
URLFOR($Action.Opportunity.New,null,[clone=1,id=Opportunity.Id,retURL="/"&Opportunity.Id],https://ap2.salesforce.com/{!Opportunity.Id}/e?clone=1&retURL=%2F{!Opportunity.Id}&00N2800000FJLEz="{!Opportunity.Name}" ), 
{!Opportunity.parent__c}

}
 
mallikharjunarao gundamallikharjunarao gunda
Got an error Error: Syntax error. Found '/' see this code {!IF(Opportunity.parent__c==null, URLFOR($Action.Opportunity.New,null,[clone=1,id=Opportunity.Id,retURL="/"&Opportunity.Id], https://ap2.salesforce.com/{!Opportunity.Id}/e?clone=1&retURL=%2F{!Opportunity.Id}&00N2800000FJLEz="{!Opportunity.Name}" ), {!Opportunity.parent__c} ) }
karthikeyan perumalkarthikeyan perumal
Hello 

Dont use this

"https://ap2.salesforce.com/{!Opportunity.Id}/e?clone=1&retURL=%2F{!Opportunity.Id}&00N2800000FJLEz="{!Opportunity.Name}" )"


use this code as Exactly. 
 
{!IF(Opportunity.parent__c==null, 
URLFOR($Action.Opportunity.New,null,[clone=1,id=Opportunity.Id,retURL="/"&Opportunity.Id],true), 
Opportunity.parent__c
) 
}


Thanks
karthik

 
mallikharjunarao gundamallikharjunarao gunda
Sorry It doesn't work