#Text field not udpating in real time anymore

1 messages · Page 1 of 1 (latest)

sharp mortar
#

I also should note that it works yesterday but it doesnt now

dusk irisBOT
#

Hey!
Can you use default values + Appsmith store to do this? Here's what I mean:

  1. Set the default value of the input field to a field in the appsmith store
    (e.g appsmith.store.input_default_value).
  2. 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?

sharp mortar
#

Do I need to use await for it or just implement it like that?

dusk irisBOT
#

Yes. You should add await to the storeValue call

jolly birch
#

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";
    }
}