These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Syntax help

patra
Registered: Oct 19 2006
Posts: 270
Answered

I have a Mandatory date field with the script below on Exit Event-Language-FormCalc

$.rawValue = Upper(num2date(date(), "MMM DD, YYYY"))
It's work fine.

My issue is I want this field on Exit if there is a vaue to get rid of the red mandatory frame!
I try to use the script below but no luck.......Thank you!

if (Date.rawValue != null)
{Date.mandatory = "disabled"; }

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Have you tried setting the language to JavaScript.

George Kaiser

patra
Registered: Oct 19 2006
Posts: 270
Does not work For Exit Event-Java Script the script below:

$.rawValue = Upper(num2date(date(), "MMM DD, YYYY"))


if (Date.rawValue != null)
{Date.mandatory = "disabled"; }
Bamboolian
Registered: Jul 27 2010
Posts: 48
Hi patra,

Are you setting all the scripts to the same Exit event?
If so, I never have found a way to set FormCalc and Javascript at the same object's same event, and I will insist to use language for the same event.

Formcalc
$.rawValue = Upper(num2date(date(), "MMM DD, YYYY"))if ($.rawValue <> null) then$.mandatory = "disabled";endif