Update a field on submit - InfoPath Dev
in

InfoPath Dev

Update a field on submit

Last post 12-29-2008 12:08 AM by Anuma. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 12-18-2008 03:10 AM

    • Franz
    • Not Ranked
    • Joined on 12-18-2008
    • Posts 3

    Update a field on submit

     Hi

     I should start off by saying that my experience with infopath is a bit more than an hour.

     I have managed to create a submit form which passes data to a web serivce.

    Now i need to make an expression field which shows the data entered (the data is just a person name)  in an expression field (which i suspect is like a label in windows forms, correct?) after the user clicks on submit

     Any help on how to achieve this would be greatly appreciated.

     Regards

    Franc

  • 12-18-2008 04:04 AM In reply to

    Re: Update a field on submit

    Hi and welcome to forums,

    Add a field (ex: field1) to the schema. Set a rule on submit button to set the field1 value as the value which you want to display in the expression box. In the expression box, take the xpath as the new field(i.e field1).

    Swathip
    www.ggktech.com
  • 12-18-2008 06:50 AM In reply to

    • Franz
    • Not Ranked
    • Joined on 12-18-2008
    • Posts 3

    Re: Update a field on submit

     Thanks for the quick reply

     How do you add the rule ? 

     Regards

    Franz

  • 12-18-2008 06:58 AM In reply to

    Re: Update a field on submit

    You can't let the user enter a name in an expression field

    So can give more information what you try to do ? 

    - Version of InfoPath you use
    - The person name, is it entered by the user or is it the return value of the WebService ?

    If it is there returnValue, open the expression box, and as value, select the WebService DataSource and select the return value. 

    Frederik

    Frederik Van Lierde
    Blue InfoPath Blog  ¦  SilverSands Associate  ¦  Do you follow me already?  ¦  We work smart, not hard


    If this article was helpfull, don't forget to rate it, tnx!
  • 12-18-2008 07:05 AM In reply to

    • Franz
    • Not Ranked
    • Joined on 12-18-2008
    • Posts 3

    Re: Update a field on submit

     Ok sorry i wasn't clear enough

     The user will enter a name in a textbox

    Click on submit

    Data will be send to the database.

    Than i need to show The name he typed in a label and i suspect i need to use the function box

     I'm using infopath 2007

    Was that clear ?

  • 12-29-2008 12:08 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Update a field on submit

    Hi,

     
    1. Add one new Field to the Schema.
    2. Follow below steps to Add rule to the Button.
      1. Double click on the button.
      2. Click on Rules button.
      3. Click on “Add” button.
      4. Click on “Add Action” button.
      5. Select “Set A Field Value” from Action Dropdown.
      6. Select xpath for the field which you added in step1 in the “Field” text box.
      7. Enter “userName()” in the value text box.
      8. Click on ok.
    3. Add one “Expression Box” to the field and enter xpath of the Step1 field to this control.
    Anuma Chinthapalli /
    http://www.GGKTech.com
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.