Hi Guys - would appreciate a little help here, I think I'm close but...
I am trying to write javascript to check whether several fields are null. Basically if ANY of the fields are populated then FinanceNotes should = "filled", if they are ALL null then it should be "empty".
The code I have so far is below however I am unsure what the correct syntax is to add all of the fields (FinanceImpact7, HealthSafetyImpact7 etc) - is it && or || etc?
if (ImpactsTable.Row1.FinanceImpact7.rawValue == null && ImpactsTable.Row2.HealthSafetyImpact7.rawValue == null && ImpactsTable.Row2.OpsBusinessImpact7.rawValue == null)
{
Subform2.ImpactsTable.Row1.FinanceNotes.rawValue = "empty";
}
else
{
Subform2.ImpactsTable.Row1.FinanceNotes.rawValue = "filled";
}
Cheers!!
Ellis