Category: Widget
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Is There an Alternative for Component Controls From Retool?

Issue

I want to change the value of a Datepicker widget using a button's event handle function on Appsmith. Currently, I can only do it by using the storeValue function and binding it to the Datepicker widget. I suggest adding a feature to programmatically set meta properties on widgets to make it easier.

Resolution

It's now possible to use Datepicker.setValue() to set the date programmatically via Widget Methods. You can learn more about widget methods in our docs here.