Add a checkbox to a custom dashboard widget

I wonder how to add a checkbox to a custom dashboard widget. The checkbox I’m talking about is a blueprint field which enables a user to show or hide a defined message. This should also work directly from the dashboard without navigating to the page template.

Checkbox on Page-Template

The checkbox located on the related page template should reflect the changed state.

I don’t think your problem is adding the checkbox but to go from there?

In your widget JS you would listen to state changes of the widget checkbox and then call a route that modifies the checkbox value on the corresponding page.

Yes, you’re right. Adding a checkbox is not the problem here. I’ll take a look… Thank you.