function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sourabh Tayal 14Sourabh Tayal 14 

I need to run java script code in SF1 on all object record's loading.

I need to run java script code in SF1 on all object record's loading.

How can i implement this functionality/option in SF1. Please help me regarding this.
bob_buzzardbob_buzzard
Can you clarify what you mean by "all object records loading" - if you want to execute some JavaScript on the standard view page you'll need to wait until lighting components go GA and allow us to override standard components.
Sourabh Tayal 14Sourabh Tayal 14
Hi,

I have a piece of java script code to run some logic.

I want to run this java script code to run on all pages of SF1.

"All object records loading" means whenever i will review any object's records, record could be of account object,contact object etc..
My requirement is that i want to write this code one time and use it on all objects (standard and custom) record load. If i will use it on a vf-page then in standardControlle attibute i will need to mention object name and it will work only for that object.

Please give me any idea to use it dynamically for all objects.
Thanks for your precious time.