changeElementValue( id, value )
This function assigns a new value to a field. It can be used with both output fields and input elements to automate and simulate user input. For example, clicking a button on the screen may trigger an option number to be entered into an input field and the enter key to be pressed automatically. Â This function is identical to pui.set().
Parameters:
id – element identifier
value – new value to assign
Example:
changeElementValue("TextBox1", "IT Manager"); // places IT Manager in textbox with id: TextBox1
changeElementValue("TextBox1", ""); // clear textbox