Can someone help me figure out what is making this calculation in the Advanced Tab on my form invalid? I can make the formula work to collect the parts into the hidden field, but NOT when I add the if/then statement. The IF/THEN instructions are basically saying: If the fields are all blank, then do NOT fill the hidden collection field with anything.
IF(OR(LEN(INDEX(Location_Area.CivicHse,ROW()))=0,LEN(INDEX(Location_Area.CivicSt,ROW()))=0,LEN(INDEX(Location_Area.StAve,ROW()))=0,LEN(INDEX(Location_Area.Hamlet,ROW()))=0),"#",CONCATENATE(INDEX(Location_Area.CivicHse,ROW())," ",(CONCATENATE(INDEX(Location_Area.CivicSt,ROW()))," ",(CONCATENATE(INDEX(Location_Area.StAve,ROW())),", ",(CONCATENATE(INDEX(Location_Area.Hamlet,ROW())),", AB"))
This is a town's civic address, collecting the parts in a table (to force them to give us the parts the way we want them) and then collecting the parts into a hidden field.
I can make the collection work... but I cannot make it work with an if/then statement where the statement reads: If the fields are all blank, then do NOT fill the hidden collection field with anything.
The variables:
(where Civic is the completed but hidden collection field)
The table looks like this: