SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I add a button into the Form.

Action:Submit

Submit Option: Email

I have a condition to send an e-mail.

If column1's value == val1 then send mail to person1

else send mail to person2.

I look into the Insert Formula for "TO" field in Email Properties.And I couldn't find out how to do it. How can I do it? Thank you.

share|improve this question

Easiest way without writing any code is to create a backer field for the email address, populate that field with a rule on column1, and then just use the backer field in the TO address directly.

See this link for specific steps: http://www.infopathdev.com/forums/t/9306.aspx

share|improve this answer
    
It doesn't make any changes through the rules. So I send the mail with workflow. But why it doesn't work. I saved and published the form, made the infopath form default. NOthing worked. – e.ozmen May 17 '13 at 8:50

You might want to elaborate more, when you say nothing worked. All you had to do was put say personRandom field in TO section. Now set this personRandom field depending on your condition that you have mentioned.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.