Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can couple this rule with an if statement in a workflow to ensure it only fires once and does not overwrite the name/email if the form is loaded in additional workflow steps.

Populate Today's Date in a Text Field

You can populate today's date in a field for the purposes of tracking when a form was initally submitted and more.  Its recommended you use this rule as a Custom Default value if you only want it to fire once.

Code Block
languagejs
titleCalculated Value Script
linenumberstrue
var d = new Date();
value = d.toLocaleDateString();

You can modify the date format in any way you want, for example:

Code Block
languagejs
titleCalculated Value Script
linenumberstrue
var d = new Date();
var options = {
	year: "2-digit",
	month: "2-digit",
	day: "2-digit"
};
value = d.toLocaleDateString('en', options);