Automation of text box numbers - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Automation of text box numbers

Last post 08-29-2007 03:58 AM by StuartMC. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-24-2007 08:53 AM

    Automation of text box numbers

    Hi all,

     Can somebody please tell me a way in which i can automate a text box number to increase by one everytime a repeating section is inserted.

     I currently have a rule which enables me to get 1 to change to 2 but there will be a number of inserts

    Thanks in advance

    Stuart

    20/m/uk

  • 08-24-2007 10:06 PM In reply to

    Re: Automation of text box numbers

    do you just want the ordering like 1,2,3 for the repeating values or do you eant assign a value.

     If it is just the ordering then you can set the default value to be
    count(../preceding-sibling::*) + 1
    Here you need to check "Update this value when the result  of the formula is recaliculated."

     if you dont want the numbers to be in order then you can use the following
    count(../preceding-sibling::*) + 1 + count(../following-sibling::*)
    Here you need to uncheck "Update this value when the result  of the formula is recaliculated."

  • 08-24-2007 10:24 PM In reply to

    Re: Automation of text box numbers

    Hi,

    In Infopath we have formula Position().

    First insert  Expression box and add this formula Position().
    it will increment the number every time you added section to the form..

    I hope this will help for you.

    K.Ramana Reddy / http://www.ggktech.com
    India.
  • 08-29-2007 03:58 AM In reply to

    Re: Automation of text box numbers

    Thank you very much wors a treat
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.