1 Form 2 Submit Buttons 1 Recipient for each - InfoPath Dev
in

InfoPath Dev

1 Form 2 Submit Buttons 1 Recipient for each

Last post 05-14-2009 11:22 AM by pervassive. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-13-2009 09:10 AM

    1 Form 2 Submit Buttons 1 Recipient for each

    Hallo,

    I am no programmer so please excuse the ignorance.

    I have 1 Form with 2 submit buttons. 1 "Submit" which sends the form to first receipient who needs to approve the request. Button 2 "Approve" then sends it to another recipient.

    I saw a post with similar question but no example code. Can anyone give me an example, I've tried several and get error in this line and that line...grrr ; )

  • 05-13-2009 12:11 PM In reply to

    Re: 1 Form 2 Submit Buttons 1 Recipient for each

    Hello and welcome to the forum!

    I believe you can achieve this without writing any code. You can instead use InfoPath's built-in functionalities. Below are some suggestions:

    1. Add Email Submit data connections in your form (Tools Menu > Data Connections). You will have 2 different email submit connections, 1 for the first submit and 1 for the second (approve). In these, you will specify the recipient email address accordingly.

    2. Add a rule to your first Submit button that submits using the first email data connection.

    3. Do the same for your second Submit (Approve) button > second email data connection.

    You can add conditional formatting to your buttons such that if the user (person filling out the form) is not the approver, then disable or hide the Approve button, and vice-versa; OR, you can use just one button for both submits, and configure your rules with conditional formatting.

    i.e.

    First Rule: If "User" is not equal to "Approver", then submit using the first email data connection.

    Second Rule: If "User is equal to "Approver", then submit using the second email data connection.

    I hope that makes sense. Otherwise, please let me know and I'd be glad to assist you further.

    Cheers!

    Mel Clemente
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 05-14-2009 11:22 AM In reply to

    Re: 1 Form 2 Submit Buttons 1 Recipient for each

    YEAH!

    Thanx Mel,

    That was perfect.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.