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
Madhuri TankMadhuri Tank 

Javascript returning different value depending on profile setting

I am getting different values in javascript on vfPage. When Manage Custom Permissions and Customized application checkbox is true, javascript returns value as per calculation and when that checkbox is not true javascript returns null.When Customize Application checkbox is trueWhen Customize Application checkbox is false
NagendraNagendra (Salesforce Developers) 
Hi Madhuri,

May I suggest you please give a try by changing object deployment status from in development to deployed which should probably do the trick.

Also, give a try by removing Manage Custom Permissions and Customized application, view setup and configuration permissions from the profile.

Hope this helps.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra
Madhuri TankMadhuri Tank
Exactly. It worked for me. Thank You So much 
Nagendra.