Add row to repeating table from other fields. - InfoPath Dev
in

InfoPath Dev

Add row to repeating table from other fields.

Last post 04-20-2008 04:51 PM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-20-2008 05:24 AM

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Add row to repeating table from other fields.

    G'day,

    I have 3 fields 'name', 'email' and 'subject'

    I created a submit data connection which gets it's email values from these fields. Works great as a 'enter email to send form to' type function on my form.

    What I would really like is to have the form maintain a table of the email addresses that it has been sent to (in a very basic sense, I'm not worried about ALL existances of the form knowing where all the others have been sent, just one instance, opened up, and the person can press the submit button multiple times with different values in those 3 fields each time.

     Is there a way to add an action, or a small amount of code, so that when the submit button is pressed it adds the values from the three fields to a repeating table located later in the form?

     Thank you for your assistance,

    Skarn

  • 04-20-2008 04:51 PM In reply to

    Re: Add row to repeating table from other fields.

    Hey Skarn.

    I would make your current fields repeating. Add one more field which tracks the current one or maybe a numeric that increments.

    Reference the most current one for your submit data connection. I would add one more number field to your form which tracks the current record.

    Then when the user adds a contact they can use an insert labeled whatever you want.  The repeating table could hide all but the inserted row except where you want to show history.

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