Discussion:
InfoPath formulas
(too old to reply)
Boolean formula
2006-06-29 16:48:01 UTC
Permalink
I have a text box that includes "DAILY" rate and one that says "WEEKLY" rate
and one that says "XDAY". If the "DAILY" rate is blank, I want "WEEKLY" / 3
in the "XDAY" box to come up automatically. Not sure how to create the
formula.
Greg Collins [InfoPath MVP]
2006-06-29 17:32:54 UTC
Permalink
Forumlas don't have any kind of if-then-else functionality... you might have to do this via code.
--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
Boolean formula
2006-06-29 17:39:02 UTC
Permalink
so using the boolean function wouldn't work, correct?
Post by Greg Collins [InfoPath MVP]
Forumlas don't have any kind of if-then-else functionality... you might have to do this via code.
--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
Greg Collins [InfoPath MVP]
2006-06-29 18:07:10 UTC
Permalink
You can use the boolean function, but you won't be able to use it like an if-statement in an expression.
--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
Greg Collins [InfoPath MVP]
2006-06-29 17:33:08 UTC
Permalink
Forumlas don't have any kind of if-then-else functionality... you might have to do this via code.
--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
S.Y.M. Wong-A-Ton
2006-06-29 19:25:02 UTC
Permalink
While you cannot use conditional statements within expressions of formulas,
you could use a rule to set the value of a field and then add a condition on
the rule. This way you can create your own conditional statements using
rules.

Example: You could add 2 rules to set the value of 1 field. On the first
rule you could set a condition so that the rule will only run when your
"DAILY" rate field is blank. On the second rule you could set a condition so
that the rule will only run when your "DAILY" rate field is not blank.
---
S.Y.M. Wong-A-Ton
Post by Boolean formula
I have a text box that includes "DAILY" rate and one that says "WEEKLY" rate
and one that says "XDAY". If the "DAILY" rate is blank, I want "WEEKLY" / 3
in the "XDAY" box to come up automatically. Not sure how to create the
formula.
Greg Collins [InfoPath MVP]
2006-06-30 19:23:06 UTC
Permalink
Yes - this is a good alternative if your scenario allows for it.

Let us know what you were able to figure out.
--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )
Loading...