Can the interactive button be described as an input box, pull down list with json?

Author: imaltai, Created: 2018-07-17 09:11:42, Updated:

Can the interactive button be described as an input box, pull down list with json? Or can you use a button to trigger JavaScript, which code in JavaScript can be used to implement the function of input text content?


More

imaltaiMy idea is to generate a button using the method of dynamically generating buttons in state in the tutorial, and then click on this button to enter content; or, if possible, to generate an input box directly.

imaltaiMy interaction button is in the copy tutorial, called test1, in test1 I called myfunction, but no dialog box pops up? function myFunction ((() { var x; var name=prompt (("Please enter your name","Harry Potter"); If (name!=null) { x="Hello " + name + "! How are you today?"; alert ((x); I'm not sure. I'm not sure. function test1 ((p) { //Log ((" calls the custom function, parameter:", p); MyFunction (((); and return p; I'm not sure.

The Little DreamYou can, see the tutorial: I've been trying to get a hold of you for a while. 2.5.2 High-level interaction: Debugging while the robot is running.