MySQL, reference textInput.value for table name

Try writing the entire statement as a JS query and using an EXEC call to execute it.

return "CREATE PROCEDURE " + {{ textInput1.value }} + "()"

...should get you the statement the way you want it.

2 Likes