#Text field not udpating in real time anymore
1 messages · Page 1 of 1 (latest)
Hey!
Can you use default values + Appsmith store to do this? Here's what I mean:
- Set the default value of the input field to a field in the appsmith store
(e.gappsmith.store.input_default_value). - Within the JsObject, update the default value with
storeValue('input_default_value', 'default_value')rather than doing it
directly.
Can you try this and see if it works?
Do I need to use await for it or just implement it like that?
Yes. You should add await to the storeValue call
I have the same problem. Here my code
export default {
variaveis: async () => {
await storeValue("whatsapp_total", 0)
await storeValue("whatsapp_envio", 0)
return "dados carregados";
}
}