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
TehNrdTehNrd 

How to detect Chat Widget in Visualforce page?

Is there a way to systematically check to see if the Chat Widget will be present in a Visualforce page?

 

I say "will be" present as the html elements are not present on load so you can't check to see if these elements exists on page load. Is there any JavaScript variable or salesforce.com provided method/merge field to determine if Chat is turned on?

 

Based on if this is present or not we need to modify our CSS so this widget doesn't cover our apps functionality.

 

Thanks,

Jason