You need to sign in to do that
Don't have an account?
Anas Alamour
clear text field when clone record
I have a custom object in salesforce Lightning , there is a requirement when clone a record , all the fields are populated except one text field. I created a custom clone button that uses a hacked URL as next :
/{!Custom_Object.Id}/e?clone=1&retURL=%2F{!Custome_Object.Id}&00Y5111111B6qjA=
Where Custom_Object is the API name of the custom object and 00Y5111111B6qjA is the ID of the text field.
When i click on the customized Clone button , the value of the text field is not blank.
Is there any suggestion ?
/{!Custom_Object.Id}/e?clone=1&retURL=%2F{!Custome_Object.Id}&00Y5111111B6qjA=
Where Custom_Object is the API name of the custom object and 00Y5111111B6qjA is the ID of the text field.
When i click on the customized Clone button , the value of the text field is not blank.
Is there any suggestion ?
First Approach:-
ISCLONE() function is available as a method to determine if a record is cloned in workflow. so you need create a work flow that will check criteria
ISCLONE() and after that you can update your fields
Second Approach:-
First you need to create a custom field boolean type like: Is_Clone__c
Create a work flow with Criteria ISCLONE().
Update field Is_Clone__c = true.
After that Create a process builder:
if(Is_Clone__c)
then update your fields
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh