You need to sign in to do that
Don't have an account?

lookup field is not getting populated in URL hacking in custom button in lightning.
lookup field is not getting populated in URL hacking in custom button in lightning. It is getting populated in lightning.
I have one parent object named Sample Request and its child object Sample Product having master detail relationship.
I created one custom button with url hacking to set some fields and recordtype id for sample product creation which is in related list of Parent object(Sample Product).
In classic parent lookup field in getting populated while clicking on related list button but it is not working in lightning. Lokkup field is empty.
I have used this code:
/a0m/e?CF00Na000000ATqLW={!Sample_Request__c.Name}
&CF00Na000000ATqLW_lkid={!Sample_Request__c.Id}
&RecordType="{!$Label.UsCanSampleProductRecordType}"
&retURL=%2F{!Sample_Request__c.Id}
I need to display this button in related list.
I thought of creating lightning action but it is not getting displayed in related list section as only list buttons can be displayed in related list section.
Any help would be appreciated.
I have one parent object named Sample Request and its child object Sample Product having master detail relationship.
I created one custom button with url hacking to set some fields and recordtype id for sample product creation which is in related list of Parent object(Sample Product).
In classic parent lookup field in getting populated while clicking on related list button but it is not working in lightning. Lokkup field is empty.
I have used this code:
/a0m/e?CF00Na000000ATqLW={!Sample_Request__c.Name}
&CF00Na000000ATqLW_lkid={!Sample_Request__c.Id}
&RecordType="{!$Label.UsCanSampleProductRecordType}"
&retURL=%2F{!Sample_Request__c.Id}
I need to display this button in related list.
I thought of creating lightning action but it is not getting displayed in related list section as only list buttons can be displayed in related list section.
Any help would be appreciated.
refer the below link:
https://douglascayers.com/2018/08/05/legitimate-url-hacking-in-lightning-experience/
Thanks,
SEKAR RAJ