Skip to main content
Closed

FreshDesk Widget API - Change position of widget launcher button programmatically

  • Mar 24, 2022 8:58 PM UTC
  • 0 replies
  • 103 views

Forum|alt.badge.img+1

In the FreshDesk Widget admin, it is possible to choose left or right for the position of the Widget.

I would like to be able to set this position value using the Widget API.

We have few different types of pages/templates, and for some of them the right side would work better than the left. It would be very helpful to be able to dynamically choose the position by submitting the value via the Widget API.

For example:

<script>
jQuery( function() {
FreshworksWidget('settings', {
position: 'left'
});
});
</script>


<script>
jQuery( function() {
FreshworksWidget('settings', {
position: 'right'
});
});
</script>

Potentially other settings could be adjusted as well using this method.