Forum Academy Marketplace Showcase Pricing Features

How to retain text on text editor even page is refreshed

So i have a text editor in my app and I plan to have export doc plugin there.

I want to retain the text on the editor (what ever I typed) even on page refresh and then allow export as doc.

So I dont lose the progress if I accidentally refresh

Thanks for the help!

You can use any plugin that has triggering event when user types text. This plugin shall work fine for this purpose Keystroke Input Trigger Plugin | Bubble

Create workflow that will save the typed text in the DB every time user types.

If you refresh the page the text will be stored in the DB but your input will be empty. So you should indicate in the input a default value - reference to the text field in the DB. After that even if the page is refreshed the saved text will be displayed in the input.

1 Like

Just create a data type for each user called “text backup”, and make it a text field.

Create a workflow on the page so that when the page refreshes you make changes to data type “text backup” and any text in your input is what gets entered into the field.

Then when the page loads you have a workflow to check for data in the “text backup” field, and if there is data there, that data gets populated to the input field.