Hi Thanks for the reply and useful advice, I don't think i explained myself properly though, i understand how to assign the value using a string literal = " text..." and also the use of the java function called with an inChange or onClick event to set the field value, but my query was relating to the initial value assign statement:
Code:
...value = my string val here ...
relating to the optional value parameter to use at the fields construction
i would like to know if it is poossible to replace the words 'my string val here'
with a variable name, thus assigining the value of the field to the value of the variable
like in C++ you might have something like:
Code:
string myStr = "first name";
formField.value(myStr);