"IF" calculations in InfoPath

P

Paul

Hello,

Thanks for reading me.
I am trying to create a 'IF' style command in InfoPath that returns X
or Y depending on the results of a drop down box on the form. So if
they choose A in the list, X is returned in a textbox.

I tried an excel equation but get this message: 'IF' is not a valid
XSLT or XPath function.
I can't seem to find an equvilant function. Any help would be most
appreicated.

The actual equation I was entering was: IF(datapoint="None","Design
Review Not Required","Design Review Required")
Hoping that if None was selected from the drop down box 'datapoint'
then a textbox would display "Design Review Not Required, and in all
other instances it would report "Design Review Required.

Many thanks,

~ Paul
 
G

Greg Collins [InfoPath MVP]

Excel functions are not supported. You need to use XPath functions. However, you can do this very easily in the following manner:

Use two Expression Boxes--one for each message. Then add conditional formatting onto each of them such that:
If datapoiont="None" hide "Design Review Required" expression box
If datapoint != "None" hide "Design Review Not Required" expression box
 
P

Paul

Hi Greg,

That's great, thank you. With a bit of jiggery-pokery I got it to
work.

Thank you very much indeed for your kind assistance.

~ Paul
 

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