I am building my own prompt() window for a script, but can't figure out how to use the text from the text field.
What i want to do is to use the text as the layer name.
Is there any input method or something i can use for this?
Custom prompt();
var promptWin = new Window ("dialog", "Pre-compose name");
var promptInputGroup = promptWin.add ("group");
promptInputGroup.add ("statictext", undefined, "Name:");
var textFiled = promptInputGroup.add ("edittext", undefined, "Pre-comp");
textFiled.characters = 20;
textFiled.active = true;
var groupTwo = promptWin.add("group", undefined, "GroupTwo");
groupTwo.orientation = "row";
var okDialog = groupTwo.add("button", undefined, "OK",);
var cancelDialog = groupTwo.add("button", undefined, "Cancel",);
groupTwo.alignment = "right";
promptWin.show ();
JesB