I have created this javascript for printing of my document. It is 3 pages and every field is required to be filled in.
It's not working, can someone help me today URGENT!!
var iVar = 0;
//first field
if ((Date.rawValue == null) || (Date.rawValue == "")) {
app.alert("Please enter a value in the Date field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Date.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Date.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Date.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Date.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Company_Name.rawValue == null) || (Company_Name.rawValue == "")) {
app.alert("Please enter a value in the Company Name field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Company Name.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Company Name.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Name.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Name.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Address.rawValue == null) || (Address.rawValue == "")) {
app.alert("Please enter a value in the Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((City.rawValue == null) || (City.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("City.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("City.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("City.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("City.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((State.rawValue == null) || (State.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("State.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("State.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("State.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("State.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Zip_Code.rawValue == null) || (Zip_Code.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Zip Code.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Zip Code.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Zip Code.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Zip Code.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Phone.rawValue == null) || (Phone.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Phone.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Phone.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Phone.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Phone.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Fax.rawValue == null) || (Fax.rawValue == "")) {
app.alert("Please enter a value in the Fax field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Fax.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Fax.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Fax.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Fax.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Website.rawValue == null) || (Website.rawValue == "")) {
app.alert("Please enter a value in the Website field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Website.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Website.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Website.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Website.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Federal_ID.rawValue == null) || (Federal_ID.rawValue == "")) {
app.alert("Please enter a value in the Federal ID field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Federal ID#.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Federal ID#.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Federal ID#.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Federal ID#.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Bill_to_Address.rawValue == null) || (Bill_to_Address.rawValue == "")) {
app.alert("Please enter a value in the Bill to Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Bill to Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Bill to Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Bill to Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Bill to Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((City1.rawValue == null) || (City1.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("City1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("City1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("City1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("City1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((State1.rawValue == null) || (State1.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("State1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("State1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("State1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("State1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Zip_Code1.rawValue == null) || (Zip_Code1.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Zip Code1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Zip Code1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Zip Code1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Zip Code1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Special_Delivery_Instructions_2.rawValue == null) || (Special_Delivery_Instructions_2.rawValue == "")) {
app.alert("Please enter a value in the Special Delivery Instructions field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Special Delivery Instructions_2.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Special Delivery Instructions_2.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Special Delivery Instructions_2.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Special Delivery Instructions_2.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Purchasing_Contact.rawValue == null) || (Purchasing_Contact.rawValue == "")) {
app.alert("Please enter a value in the Purchasing Contact field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Purchasing Contact.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Purchasing Contact.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Purchasing Contact.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Purchasing Contact.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Email1.rawValue == null) || (Email1.rawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Email1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Email1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Email1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Email1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Accounts_Payable_Contact.rawValue == null) || (Accounts_Payable_Contact.rawValue == "")) {
app.alert("Please enter a value in the Accounts Payable Contact field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Accounts Payable Contact.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Accounts Payable Contact.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Accounts Payable Contact.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Accounts Payable Contact.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Email2.rawValue == null) || (Email2.rawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Email2.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Email2.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Email2.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Email2.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Credit_Limited_Desired.rawValue == null) || (Credit_Limited_Desired.rawValue == "")) {
app.alert("Please enter a value in the Credit Limited Desired field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Credit Limited Desired.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Credit Limited Desired.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Credit Limited Desired.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Credit Limited Desired.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Anticipated_Purchases.rawValue == null) || (Anticipated_Purchases.rawValue == "")) {
app.alert("Please enter a value in the Anticipated Purchases field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Anticipated Purchases.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Anticipated Purchases.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Anticipated Purchases.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Anticipated Purchases.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((DUNS.rawValue == null) || (DUNS.rawValue == "")) {
app.alert("Please enter a value in the DUNS field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("DUNS#.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("DUNS#.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("DUNS#.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("DUNS#.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Principal_Bank.rawValue == null) || (Principal_Bank.rawValue == "")) {
app.alert("Please enter a value in the Principal Bank field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Principal Bank.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Principal Bank.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Principal Bank.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Principal Bank.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((AccountNumber.rawValue == null) || (AccountNumber.rawValue == "")) {
app.alert("Please enter a value in the Account Number field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("AccountNumber.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("AccountNumber.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Account#.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Account#.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((AddressB.rawValue == null) || (AddressB.rawValue == "")) {
app.alert("Please enter a value in the Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("AddressB.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("AddressB.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("AddressB.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("AddressB.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((CityB.rawValue == null) || (CityB.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("CityB.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("CityB.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("CityB.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("CityB.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((StateB.rawValue == null) || (StateB.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("StateB.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("StateB.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("StateB.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("StateB.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Zip_CodeB.rawValue == null) || (Zip_CodeB.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Zip CodeB.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Zip CodeB.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Zip CodeB.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Zip CodeB.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Bank_RepresentativeB.rawValue == null) || (Bank_RepresentativeB.rawValue == "")) {
app.alert("Please enter a value in the Bank Representative field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Bank RepresentativeB.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Bank RepresentativeB.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Bank RepresentativeB.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Bank RepresentativeB.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((PhoneB.rawValue == null) || (PhoneB.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("PhoneB.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("PhoneB.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("PhoneB.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("PhoneB.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Name.rawValue == null) || (TR1Name.rawValue == "")) {
app.alert("Please enter a value in the Trade Reference Name field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Name.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Name.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Name.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Name.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Address.rawValue == null) || (TR1Address.rawValue == "")) {
app.alert("Please enter a value in the Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1City.rawValue == null) || (TR1City.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1City.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1City.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1City.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1City.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1State.rawValue == null) || (TR1State.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1State.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1State.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1State.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1State.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Zip_Code.rawValue == null) || (TR1Zip_Code.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Zip Code.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Zip Code.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Zip Code.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Zip Code.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Account_Established.rawValue == null) || (Account_Established.rawValue == "")) {
app.alert("Please enter a value in the Account Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Account Established.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Account Established.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Account Established.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Account Established.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((High_Credit_Established.rawValue == null) || (High_Credit_Established.rawValue == "")) {
app.alert("Please enter a value in the High Credit Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("High Credit Established.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("High Credit Established.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("High Credit Established.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("High Credit Established.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Contact_Person.rawValue == null) || (Contact_Person.rawValue == "")) {
app.alert("Please enter a value in the Contact Person field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Contact Person.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Contact Person.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Contact Person.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Contact Person.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Phone.rawValue == null) || (TR1Phone.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Phone.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Phone.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Phone.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Phone.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Fax.rawValue == null) || (TR1Fax.rawValue == "")) {
app.alert("Please enter a value in the Fax field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Fax.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Fax.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Fax.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Fax.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Email.rawValue == null) || (TR1Email.rawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Email.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Email.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Email.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Email.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR1Terms.rawValue == null) || (TR1Terms.rawValue == "")) {
app.alert("Please enter a value in the Terms field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR1Terms.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR1Terms.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR1Terms.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR1Terms.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Name.rawValue == null) || (TR2Name.rawValue == "")) {
app.alert("Please enter a value in the Trade Reference Name field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Name.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Name.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Name.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Name.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Address.rawValue == null) || (TR2Address.rawValue == "")) {
app.alert("Please enter a value in the Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2City.rawValue == null) || (TR2City.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2City.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2City.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2City.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2City.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2State.rawValue == null) || (TR2State.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2State.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2State.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2State.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2State.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Zip_Code.rawValue == null) || (TR2Zip_Code.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Zip Code.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Zip Code.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Zip Code.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Zip Code.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Account_Established1.rawValue == null) || (Account_Established1.rawValue == "")) {
app.alert("Please enter a value in the Account Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Account Established1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Account Established1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Account Established1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Account Established1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((High_Credit_Established1.rawValue == null) || (High_Credit_Established1.rawValue == "")) {
app.alert("Please enter a value in the High Credit Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("High Credit Established1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("High Credit Established1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("High Credit Established1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("High Credit Established1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Contact_Person1.rawValue == null) || (Contact_Person1.rawValue == "")) {
app.alert("Please enter a value in the Contact Person field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Contact Person1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Contact Person1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Contact Person1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Contact Person1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Phone.rawValue == null) || (TR2Phone.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Phone.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Phone.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Phone.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Phone.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Fax.rawValue == null) || (TR2Fax.rawValue == "")) {
app.alert("Please enter a value in the Fax field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Fax.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Fax.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Fax.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Fax.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Email.rawValue == null) || (TR2Email.rawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Email.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Email.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Email.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Email.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR2Terms.rawValue == null) || (TR2Terms.rawValue == "")) {
app.alert("Please enter a value in the Terms field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR2Terms.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR2Terms.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR2Terms.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR2Terms.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Name.rawValue == null) || (TR3Name.rawValue == "")) {
app.alert("Please enter a value in the Trade Reference Name field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Name.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Name.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Name.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Name.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Address.rawValue == null) || (TR3Address.rawValue == "")) {
app.alert("Please enter a value in the Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3City.rawValue == null) || (TR3City.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3City.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3City.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3City.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3City.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3State.rawValue == null) || (TR3State.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3State.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3State.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3State.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3State.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Zip_Code.rawValue == null) || (TR3Zip_Code.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Zip Code.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Zip Code.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Zip Code.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Zip Code.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Account_Established2.rawValue == null) || (Account_Established2.rawValue == "")) {
app.alert("Please enter a value in the Account Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Account Established2.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Account Established2.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Account Established2.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Account Established2.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((High_Credit_Established2.rawValue == null) || (High_Credit_Established2.rawValue == "")) {
app.alert("Please enter a value in the High Credit Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("High Credit Established2.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("High Credit Established2.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("High Credit Established2.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("High Credit Established2.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Contact_Person2.rawValue == null) || (Contact_Person2.rawValue == "")) {
app.alert("Please enter a value in the Contact Person field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Contact Person2.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Contact Person2.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Contact Person2.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Contact Person2.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Phone.rawValue == null) || (TR3Phone.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Phone.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Phone.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Phone.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Phone.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Fax.rawValue == null) || (TR3Fax.rawValue == "")) {
app.alert("Please enter a value in the Fax field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Fax.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Fax.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Fax.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Fax.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Email.rawValue == null) || (TR3Email.rawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Email.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Email.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Email.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Email.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR3Terms.rawValue == null) || (TR3Terms.rawValue == "")) {
app.alert("Please enter a value in the Terms field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR3Terms.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR3Terms.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR3Terms.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR3Terms.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Name.rawValue == null) || (TR4Name.rawValue == "")) {
app.alert("Please enter a value in the Trade Reference Name field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Name.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Name.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Name.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Name.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Address.rawValue == null) || (TR4Address.rawValue == "")) {
app.alert("Please enter a value in the Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4City.rawValue == null) || (TR4City.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4City.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4City.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4City.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4City.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4State.rawValue == null) || (TR4State.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4State.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4State.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4State.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4State.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Zip_Code.rawValue == null) || (TR4Zip_Code.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Zip Code.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Zip Code.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Zip Code.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Zip Code.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Account_Established3.rawValue == null) || (Account_Established3.rawValue == "")) {
app.alert("Please enter a value in the Account Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Account Established3.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Account Established3.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Account Established3.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Account Established3.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((High_Credit_Established3.rawValue == null) || (High_Credit_Established3.rawValue == "")) {
app.alert("Please enter a value in the High Credit Established field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("High Credit Established3.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("High Credit Established3.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("High Credit Established3.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("High Credit Established3.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Contact_Person3.rawValue == null) || (Contact_Person3.rawValue == "")) {
app.alert("Please enter a value in the Contact Person field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Contact Person3.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Contact Person3.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Contact Person3.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Contact Person3.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Phone.rawValue == null) || (TR4Phone.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Phone.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Phone.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Phone.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Phone.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Fax.rawValue == null) || (TR4Fax.rawValue == "")) {
app.alert("Please enter a value in the Fax field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Fax.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Fax.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Fax.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Fax.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Email.rawValue == null) || (TR4Email.rawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Email.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Email.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Email.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Email.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((TR4Terms.rawValue == null) || (TR4Terms.rawValue == "")) {
app.alert("Please enter a value in the Terms field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("TR4Terms.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TR4Terms.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TR4Terms.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TR4Terms.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((NameCreditCard.rawValue == null) || (NameCreditCard.rawValue == "")) {
app.alert("Please enter a value in the Name on Credit Card field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("NameCreditCard.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("NameCreditCard.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("NameCreditCard.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("NameCreditCard.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Credit_Card.rawValue == null) || (Credit_Card.rawValue == "")) {
app.alert("Please enter a value in the Credit Card Number field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Credit Card.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Credit Card.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Credit Card.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Credit Card.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Security_Code.rawValue == null) || (Security_Code.rawValue == "")) {
app.alert("Please enter a value in the Security Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Security Code.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Security Code.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Security Code.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Security Code.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Expiration_Date.rawValue == null) || (Expiration_Date.rawValue == "")) {
app.alert("Please enter a value in the Expiration Date field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Expiration Date.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Expiration Date.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Expiration Date.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Expiration Date.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((AccountCC.rawValue == null) || (AccountCC.rawValue == "")) {
app.alert("Please enter a value in the Account Number field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("AccountCC.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("AccountCC.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("AccountCC.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("AccountCC.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((CCBilling_Address.rawValue == null) || (CCBilling_Address.rawValue == "")) {
app.alert("Please enter a value in the Billing Address field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("CCBilling Address.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("CCBilling Address.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("CCBilling Address.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("CCBilling Address.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((CityCC.rawValue == null) || (CityCC.rawValue == "")) {
app.alert("Please enter a value in the City field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("CityCC.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("CityCC.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("CityCC.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("CityCC.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((StateCC.rawValue == null) || (StateCC.rawValue == "")) {
app.alert("Please enter a value in the State field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("StateCC.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("StateCC.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("StateCC.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("StateCC.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Zip_CodeCC.rawValue == null) || (Zip_CodeCC.rawValue == "")) {
app.alert("Please enter a value in the Zip Code field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Zip CodeCC.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Zip CodeCC.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Zip CodeCC.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Zip CodeCC.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Name_on_Card.rawValue == null) || (Name_on_Card.rawValue == "")) {
app.alert("Please enter a value in the Name on Card field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Name on Card.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Name on Card.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Name on Card.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Name on Card.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((PhoneCC.rawValue == null) || (PhoneCC.rawValue == "")) {
app.alert("Please enter a value in the Phone field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("PhoneCC.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("PhoneCC.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("PhoneCC.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("PhoneCC.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if ((Email_AddressCCrawValue == null) || (Email_AddressCCrawValue == "")) {
app.alert("Please enter a value in the Email field.");
// Change the color of the fillable area of the text field.
xfa.resolveNode("Email AddressCCui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("Email AddressCCui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("Email AddressCCui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("Email AddressCCui.#textEdit.border.fill.color").value = "255,255,255";
}
// If all of the required fields contain data, then the iVar variable is set to
// zero, and a confirmation message is displayed.
if (iVar == 0) {
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
}
This forum is for helping people with point problems and providing simple advice, and whatever it is, it's not going to happen urgently. After all, everyone here is contributing on thier own time for free. What you are asking for is a major debug job. Even if the problem is a simple one. The code is enormous, it's poorly formatted, and you haven't provided any clues to what the problem is. Have you check the console window for any reported errors? what is the affect on the document, if any? Have you tried any debug techneques? or done anything that could help out anyone who might answer the question. It would take a long time to look though this mess and try to figure out if there is a problem. Espececially since we don't know any thing about your form, like it's structure and the field names.
If you need urgent help on this scale you need to hier a developer. Someone who you are paying to dedicate themselves to a solution.
Cheers,
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script