Hello. I think I need some help with a script to delay the upload of data to my DataSheet after a button is pressed.
The ultimate goal is this.
User presses button, background card color changes. After 3 seconds background card color switches back to a default color. It is important that the firebase data is updated so all users can see the change.
I have everything working except for the DataSheet persisting the default value after the 3 second delay.
I placed a script in the SaveData interaction, though I could easily make it a second Interaction and a separate script if needed. Note: The application uses a document_key that is constant and a column named ‘state’, which varies. The background card uses a state change to track the ‘state’ column data.
Works awesome, except for the delayed effect I am looking to achieve.
Thank you in advance for reading.