Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

Export Hidden Element to Static File

How would you export user data saved in a hidden element into a file for backend?

app.layout = html.Div([
    #Create text input for user
            label='Type here '

    #Store User Data In a hidden element
    html.Div(id='userInput',style={'display': 'none'} ),

#InputText Callback
@app.callback(Output('userInput', 'children'), [Input('textInput', 'value')])
def display_output(text):
	#store the data in the hidden element
    if text:
        return text
        return ""
if __name__ == '__main__':

So I want to export ‘userInput’ stored in the hidden element elsewhere, How can I do this?