You need to sign in to do that
Don't have an account?
Modify existing pages
In apps like Postcode Anywhere they change the standard account page, and adding links like "Clear Billing, Clear Shipping and find" behind de postal code, and changing country list into picklist. See this picture
How do they do that? It's without a visual force page. I try to make something like this, with a custom home page component and javascript. But I keep having troubles with the cross domain security issue. Even hosting the javascript code in an static resource is not working.
It is getting to drive me completely crazy now... Any tips would be really welcome, since I am out of options now.
Jim,
Thanks for your idea, looked into it, and finally I found a solution by using a custom component and javascript.
For more details take a look at this post
http://community.salesforce.com/t5/Visualforce-Development/Modify-content-on-standard-new-edit-page-for-accounts/td-p/196319
Bob thanks a lot, you made me think again and I have solved the problem now. It makes me so happy, and that before the weekend :)Below a part of my solution, but I feel that the use of component and HTML/javascript in there feels a bit like a hack. I wonder how long Salesforce still allows this functionality.
For everybody who's interested. Here is what I did to transfer the standard country field into a picklist rather than a text field on standard account page.Next step for me is adding input fields so I can build postcode lookup :)
1) Enable the following setting: Go to Setup -> Customize -> User Interface -> Show Custom Sidebar Components on All Pages
2) Create a new home page component and add it to the narrow home page layout.
3) Upload the static resource with the javasript which can modify the page
ps: thanks to Harm Korten which supplies most of this code http://salesforce.harmkorten.nl/2010/salesforce-country-fields-as-picklists/
All Answers
Schreurs,
I am not sure it is right solution or not but trying is harm
make a section like addrees:
in this selection use a inline VF page
in the VF page use yours java script
please let us know if you find any good idea
Hi Gopi,
Thanks, I tried your scenario. I created a new page with an account controller. I added this to both detail and edit page(section settings) of the account layout. BUT, what I was afraid off happened. It didn't showed up on both new and/or edit page for some reason :smileysad:
My guess is that they are injecting some type of style sheet (CSS) to change the way the default page get's rendered. Not that I know how to do that, but I have heard of applications doing that.
Jim,
Thanks for your idea, looked into it, and finally I found a solution by using a custom component and javascript.
For more details take a look at this post
http://community.salesforce.com/t5/Visualforce-Development/Modify-content-on-standard-new-edit-page-for-accounts/td-p/196319
Bob thanks a lot, you made me think again and I have solved the problem now. It makes me so happy, and that before the weekend :)Below a part of my solution, but I feel that the use of component and HTML/javascript in there feels a bit like a hack. I wonder how long Salesforce still allows this functionality.
For everybody who's interested. Here is what I did to transfer the standard country field into a picklist rather than a text field on standard account page.Next step for me is adding input fields so I can build postcode lookup :)
1) Enable the following setting: Go to Setup -> Customize -> User Interface -> Show Custom Sidebar Components on All Pages
2) Create a new home page component and add it to the narrow home page layout.
3) Upload the static resource with the javasript which can modify the page
ps: thanks to Harm Korten which supplies most of this code http://salesforce.harmkorten.nl/2010/salesforce-country-fields-as-picklists/