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
        dcc.Input(
            id='textInput',
            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
    else:
        return ""
if __name__ == '__main__':
    app.run_server(debug=True)

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