Dear Jimmy,
I now need to replalce the text that read "Invalid until Submitted" and then changed and read "Submitted and Valid" after the Submit Button has been clicked to something a little different.
I now need text to read "Draft for Review" on the form until the submit button is clicked. This text "Draft for Review" needs to disappears or becomes invisible after the email button has been clicked on the form.
I am now trying to make my form:
(1) require a date field entry in a date/time box in order to submit the form by email.
(2) take the serial number from a field and put it in the email submect line.
and (3) make the text "Draft for Review" text disappear or become invisible,
ALL 3 need to happen, when the submit button is clicked.
Can you tell me why the scripting I have below will give the message I want, "Please enter the date the Silver Coverage Inclusions were explained" if the date is not entered but go ahead and then, open email without making them enter the date after they click OK when the request message to enter the date come up? This allows the form to be sent WITHOUT the form user really entereing the date because the email opens up next.
Fortunately, my "Draft for Review" text disappears.
The Scripting being used is:
if(T100.rawValue == null)
{
app.alert("Please enter date selling dealer explained Silver Level Coverage Inclusions.");
xfa.host.setFocus("T100");
}
StaticText3.presence = "invisible";
var emailSubject = serialNumber.rawValue;
var myDoc = event.target;
myDoc.mailDoc(
false,
"engineesc@cat.com",
"ccdavid.holt@cat.com",
"bccSomeone@somewhere.com",
emailSubject,
"Email body goes here."
);
Can you tell me how to make all three work together correctly?
Thank you,
Victoria Holt