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:
Also you can start your widget with a custom selector:
Create a button with any class or ID like:
Start your javascript using the previous selector property:
Want to know more about the Widget API ? Read: Widget API
The first it's manually, using the Widget API:
changelogfy.open()
You can call it directly when an user clicks on a button:
<button onclick="changelogfy.open()">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:
<script>
var CLF_config = {
selector: ".changelogfy-widget", // the button class or id
app_id: "YOUR_APP_ID",
};
</script>
<script async src="https://widget.changelogfy.com/index.js"></script>
Want to know more about the Widget API ? Read: Widget API
Updated on: 10/20/2023
Thank you!