Category: How do I do X?
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.

Display numbers in textfield by button click

Issue

I want to display a number in a textfield when I click on it. I'm looking for a solution on how to implement this without using the appsmith.store object. But currently, it seems like this is the only way as there is no way to assign values to widgets programmatically in Appsmith.

Resolution

The user wants to display numbers in a textfield when clicked on. The solution provided is to use the storeValue function to assign the value to the widget programmatically. Appsmith provides a sample app to build a simple calculator which uses the store object. However, it is possible to use storeValue function instead. As of now, there is no way to assign value to widgets programmatically without using storeValue. This functionality is being tracked as a feature request in the Appsmith project's GitHub repository.