InfoPath formulas

B

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.
 
G

Greg Collins [InfoPath MVP]

Forumlas don't have any kind of if-then-else functionality... you might have to do this via code.
 
G

Greg Collins [InfoPath MVP]

Forumlas don't have any kind of if-then-else functionality... you might have to do this via code.
 
G

Greg Collins [InfoPath MVP]

You can use the boolean function, but you won't be able to use it like an if-statement in an expression.
 
S

S.Y.M. Wong-A-Ton

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.
 
G

Greg Collins [InfoPath MVP]

Yes - this is a good alternative if your scenario allows for it.

Let us know what you were able to figure out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top