0

I would like to create a custom clone button on the case object that clones all of the case but I want two fields - Escalation_Stats__c, Escalation_2 to default to blank. Below is the code I am trying but it is not working. Any ideas?

/{!Case.Id}/e?retURL={!Case.Id}&clone=1&{!Case.Escalation_Status__c}
=&!Case.Escalation_Type__c}=
1
  • (comment posted incorrectly; removed)
    – Anshul
    Commented Apr 15, 2015 at 16:17

2 Answers 2

1

Thanks for your response but I have found a work-around using URL-Hacking. For custom fields you need to use the Lead id for this, for example:

/{!Case.Id}/e?retURL={!Case.Id}&clone=1&{!Case.Escalation_Status__c} =&001J000001aKS8t=&001J000001aKIRJ=

This will clone the button, then default the two custom fields to blank.

0

You can do the following:

Create a Visualforce page that will receive the event ID and the controller of this page will retrieve the data from this ID and fill in the fields according to the recovered data.

In your button, you can redirect the user to the page or you can open this Visualforce in a jQuery dialog.

To open a jQuery dialog, visit this link:here

2
  • I would create a flow, lookup the current record, thwn use the create new element and set the necessary fields to blank Commented Apr 15, 2015 at 22:15
  • Thanks for your response but I have found a work-around using URL-Hacking. For custom fields you need to use the Lead id for this, for example: /{!Case.Id}/e?retURL={!Case.Id}&clone=1&{!Case.Escalation_Status__c} =&001J000001aKS8t=&001J000001aKIRJ=
    – Clehan1
    Commented Apr 16, 2015 at 8:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .