You need to sign in to do that
Don't have an account?

what does if(sforce.one) mean?
I was analising a code and came across if(sforce.one){ }, not sure what it does. can someone enlighten me about this
You need to sign in to do that
Don't have an account?
Sforce means one Object. The Salesforce Platform includes an event mechanism for navigation and messaging. This is exposed in Visualforce as a JavaScript object called sforce. ... one object. For example sforce.
If you have any more questions you refer to the below document which has complete information about it.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/salesforce1_dev_jsapi_sforce_one.htm
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks,
Salesforce Support.
All Answers
Sforce means one Object. The Salesforce Platform includes an event mechanism for navigation and messaging. This is exposed in Visualforce as a JavaScript object called sforce. ... one object. For example sforce.
If you have any more questions you refer to the below document which has complete information about it.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/salesforce1_dev_jsapi_sforce_one.htm
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks,
Salesforce Support.