Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

What's wrong with this code? :)

$
0
0

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


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>