//Generate a random number for certificate
//Setting randomnumber to dateString because datesString works
var randomnumber = dateString;
//var randomnumber = Math.floor(Math.random() * (999999 - 100000 + 1)) + 100000;
If I make the text box equal to %systemDate%, it returns the date. But if I make it equal to %randomNumber%, it returns %randomNumber% even when it has been set to equal the same value as system date! Am I missing some basic element of setting text boxes equal to variables?