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

Using URL hack to pre populate a lookup field, field value being showed is "_HL_ENCODED_/_HL_ _HL__blank_HL_". expected value should be record Name
Hi
Im using a URL hack for a lookup field to pre-populate the value when creating new record, unfortunately value being showed in the field is "_HL_ENCODED_/_HL_ _HL__blank_HL_" expected output should be the Name of a record.
Thanks
Im using a URL hack for a lookup field to pre-populate the value when creating new record, unfortunately value being showed in the field is "_HL_ENCODED_/_HL_ _HL__blank_HL_" expected output should be the Name of a record.
Thanks
Please check with below thread from success community which has clear explanation step by step on how to use URL hack to pre-populate a look field.
- https://success.salesforce.com/answers?id=90630000000h0NNAAY
Hope this should suffice your requirement.Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.
Best Regards,
Nagendra.P
Pls check this below link and create custom button in child object(B)
http://www.salesforceben.com/salesforce-url-hacking-tutorial/
Here i am posting my code :
Parent object: Claims__c (it has contact relation)
Child objc : B (It has contact and Claims relations)
In the listview button of 'B' Object link as below:
https://ap2.salesforce.com/a0B/e?CF00N2800000FAgob={!claims__c.Name}&CF00N2800000GmUDf={!claims__c.Contact__c}
CF00N2800000FAgob: is Lable id which you get from inspect element on Edit page of child record.
These are the following steps to put value in URL for any lookup field:
1) Don't use _lkid means lookup icon id, use simple lookup input field id.
2) Right click on lookup field (not on lookup icon) and inspect element.
3) Copy the id of field. Now you have field id.
4) Put field id = 'Name of Record' in URL, first try without space.
5) Now you can see that the value will be visible in lookup field.
e.g.
Check in direct URL first and then modify according to you
For standard field
/006/e?opp4=Testing
for custom field
NOT USE CF00NW0000001KFW6_lkid
Use --> /006/e?CF00NW0000001KFW6=Testing
Where Testing is the Account Name