Skip to Content
Apr 08, 2016 at 04:26 PM

Cannot use Formatter property in details page


Hello Experts,

I am trying to use a java script to make first letter of sentence in upper case using the formatter property by writing JS in formatter.js.

I am able to use it successfully on master page for a field value but for same field value I used in details page it is not able to fetch that string value and gives error "Cannot read property replace of 'null' ".

It looks like that value has not been initialized in details page during load of that script but same script it is very well working in Master Page!

How is that possible?

Below are the details of code, Please help.

Will reward accordingly.

formatter script

Master Page (script working correctly)

Details Page (same script failing)

Debugging error (on details page execution)