You need to sign in to do that
Don't have an account?
Display text field value using URL
I am trying to Auto populate the name of client in Related to Client field which is a custom field on standard Idea object .
Idea is a salesforce standard object.
Onclick of button I have to display relateded Opportunity Name on Related to opportunity test box.
I am trying to pass the value for Related to opportunity field as below in URL which i have written on button logic
https://cs10.salesforce.com/ideas/editIdea.apexp?c=09aJ00000004CgR&idea.Opportunity__c={! Opportunity.id}&Idea.Account__c={!Account.Id}&retURL=%2Fideas%2FideaList.apexp
On click of button I am getting Id in URL as below
https://cs10.salesforce.com/ideas/editIdea.apexp?c=09aJ00000004CgR&idea.Opportunity__c=006J00000024XX9&Idea.Account__c=001J0000002cQ1n&retURL=%2Fideas%2FideaList.apexp
Opportunity value is displaying on the text box.
Can anybody suggest on above issue.
how to populate value which i am passing in URL.
Idea object have Opportunity__c Look up fields with search option.From view source i got as below for Opportunity custom field
<input id="thePage:mainLayout:formIdea:pb:ideaCustomFields:Opportunity__c" maxlength="255" name="thePage:mainLayout:formIdea:pb:ideaCustomFields:Opportunity__c" onchange="getElementByIdCS('thePage:mainLayout:formIdea:pb:ideaCustomFields:Opportunity__c_lkid').value='';getElementByIdCS('thePage:mainLayout:formIdea:pb:ideaCustomFields:Opportunity__c_mod').value='1';" size="20" type="text" /><script type="text/javascript">
I have tried with below option but its not working.
Please help me on this.
https://cs10.salesforce.com/ideas/editIdea.apexp?c=09aJ00000004CgR&thePage:mainLayout:formIdea:pb:ideaCustomFields:Opportunity__c={!Opportunity.Name}&thePage:mainLayout:formIdea:pb:ideaCustomFields:Opportunity__c_lkid={!Opportunity.Id}&retURL=%2Fideas%2FideaList.apexp
https://cs10.salesforce.com/ideas/editIdea.apexp?c=09aJ00000004CgR&Opportunity__c={!Opportunity.Name}&Opportunity__c_lkid={!Opportunity.Id}&retURL=%2Fideas%2FideaList.apexp
Thanks
Ajit
Let me see if I understand, you want to pass the related Id via URL but it is not displaying?
I didn't get it.
You can send the field value in the URL address with the id of the field (you can get the id of the field looking at the object settings, openning the field and copying the id on the URL), for example:
Idofthefield={!Opportunity.Id}
It works.
Let me know if I understood it well.
Hi
Thanks for your response.
Idea is a standard object and Related to opportunity,Related to Client, Related to Lead and Related to Call_Report custom fields are there in Additional section.
There is a custom button and need to place on Oppertunity, Account, Lead and Call_Report button on Opportunity detail section.
Related to fields are all look up fields.
I have written below URL code in button logic.
https://cs10.salesforce.com/ideas/editIdea.apexp?c=09aJ00000004CgR&retURL=%2Fideas%2FideaList.apexp
For opportunity
My requirement is onclick of button Related to fields should auto populate opportunity name in that look up fields.
I have tried to pass all possible way but not able to display existing opportunity name in that look up fields.