I have a TextArea box that I would like to be able to export the text to a .txt file by a click of a button. Is there any way to do this?
What do you mean by export?
Its text is available through
self.text_area_1.text
But I think you might mean something else?
I am sorry for the poorly written question… what I meant was, is it possible to write the text from a textarea box to a new .txt file by a click of a button
I think you need something along these lines :
You probably need to store the text as media in a data table then provide a link to download it.
I’m not able to knock up an example tonight but I will have a go tomorrow when I get a moment.
1 Like