+ Start a Discussion
Glen Anthony CubinarGlen Anthony Cubinar 

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
NagendraNagendra (Salesforce Developers) 
Hi Glen,

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. 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
raji Gallaraji Galla
Hi Glen,
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.

 
Mohit Sharma 37Mohit Sharma 37
Hi,

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
Akshay Kumar 119Akshay Kumar 119
Thanks, Mohit for sharing this. It solved my problem. 
SAURABH RASTOGI 13SAURABH RASTOGI 13
Thanks, Mohit for your fruitful support it solved my problem.