When I click a button that I have placed on a form, I want the text in a text field already on the form to change to the text in a variable that I have created.
When I click a button that I have placed on a form, I want the text in a text field already on the form to change to the text in a variable that I have created.
Specifically what I am trying to do:
//creates my variable
var date = new Date();
var components = [
date.getYear(),
date.getMonth(),
date.getDate(),
date.getHours(),
date.getMinutes(),
date.getSeconds(),
//date.getMilliseconds()
];
var id = components.join("");
I then have a text field called "ID_Text"
I thought I could just use the following, but it does not work.
getField("ID_Text").value = id
