Articles on: Widget SDK

How to open the In-App Widget on click on a custom button?

You have some options to open the widget using custom buttons.

The first it's manually, using the Widget API:

You can call it directly when an user clicks on a button:
<button onclick="">Click Me!</button>

Also you can start your widget with a custom selector:

Create a button with any class or ID like:
<button class="changelogfy-widget">What's New</button>

Start your javascript using the previous selector property:
    var CLF_config = {
        selector: ".changelogfy-widget", // the button class or id
        app_id: "YOUR_APP_ID",
<script async src=""></script>

Want to know more about the Widget API ? Read: Widget API

Updated on: 10/20/2023

Was this article helpful?

Share your feedback


Thank you!