Versions Compared

Key

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

...

Note - If the form doesn't exist it in a Validation Step on opening it (like when creating a new submission, it will present a javascript error).  The rule below outlines how to properly execute the rule, and default a value if the form is not in a validation node.

Wiki Markupcode
languagejs
firstline1
titleValidation Step
linenumberstrue
try 
{
if (submission.metadata.Node)
{
value = submission.metadata.Node;
}
else (!submission.metadata.Node)
{
//Default value to set if not in validation node
value = 'Submitted Form'
}

}
catch(err)
{
//Default value to set if not in validation node
value = 'Submitted Form'
}

...