Using a Button for Rejecting a form - InfoPath Dev
in

InfoPath Dev

Using a Button for Rejecting a form

Last post 09-28-2009 09:53 PM by Qazi Anis. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 09-25-2009 08:44 AM

    Using a Button for Rejecting a form

    So, I'm new to InfoPath and have little to no experience in this type of stuff, but I was sucessful in put together a InfoPath form using one of the samples. Just modified a lot of the functions and added what was required. It worked great around the office. Helped organize info and saved time. But now I was asked to modify the form to incorporate new features. The basic layout of the form allows you to fill in some tables, select certain clients and add descriptions as needed. There's three buttons at the top, one to Submit (or send) the email to Dept. Head, the other two buttons are Approve and Reject. The Approve button just sends the email to multiple locations after its been reviewed and verified. Reject is were I'm having my problem.

    My question is: When someone hits the Reject button is there a way that the form will be sent back to the person that submittied the form for approval? For example, if you click on a button and open the data connection wizard, click insert formula, insert function, there's (userName) that automatically fills in the user name of the person who is working on the form. I'm looking for a function that automatically fills in the To: of the person who sent the email.

    I hope you can help!

    Thanks

    Carey

     

     

    Filed under: ,
  • 09-25-2009 07:58 PM In reply to

    Re: Using a Button for Rejecting a form

    hello and welcome to the forum Carey,

    i would suggest a simple approach would be to create a field(say submittedBy). and populate its value with the email id of the person who submits the form, at submit time. then you can use this email id.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 09-25-2009 08:48 PM In reply to

    Re: Using a Button for Rejecting a form

    Do you mean under the connection wizard of the button, add To: submittedBy. Which would automatically add the sender's email address. I think...... : )

  • 09-25-2009 09:40 PM In reply to

    Re: Using a Button for Rejecting a form

    what i meant is to create a simple field, say hidden textbox, and set its value when the form is being submitted. so in the next phase when you want to reject the form you have the email id from which this form was submitted.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 09-28-2009 08:55 AM In reply to

    Re: Using a Button for Rejecting a form

    Hey Qazi,

     Thanks for the Reply's. I've got the concept, but how do you set the hidden textbox to populate the submitters email id? The only function that I see is the the userName() function, which just adds the users login id, not their email address. Also, how do you connect the Reject Button and the hidden textbox?

     

  • 09-28-2009 09:55 AM In reply to

    Re: Using a Button for Rejecting a form

    It works!!! Thanks again Qazi for your help.........

  • 09-28-2009 09:53 PM In reply to

    Re: Using a Button for Rejecting a form

    that sounds good

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.