St.Input_text values entered and submitted using javascript

Is possible to enter and submit a value to st.input_text using Javascript?

Ideally, the input_text box will be created in Streamlit and hidden somewhere in the the page, but the javascript will enter a value and click the submit button. The submitted data will be processed in Streamlit.

When I try to submit the value from javascript, it displays the value in the input_text but not its not activating the submit button as it doesn’t fire/dispatch any events to the box. Any help would be appreciated.

Thanks

1 Like

Hi @Tharshan_Bala,

Thanks for sharing this question!

Can you share the example code you’re working with?

Also, keep in mind that CSS hacks are not really a good solutions long-term since they tend to break a lot with any minimal changes.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.