Multilevel lists in InfoPath

D

Dave Lind

Is there any way to create a multilevel numberedlist in InfoPath? Can't find
anything on google about this problem. Am I the only one who needs this
feature in InfoPath? Pretty easy to do in Word but why not in IP?
 
S

Shiva (GGK Tech)

Hello,

Multilevel numbered list means you have to create the repeating section
under repeating section. Then you can give the different number format for
both parent and child repeating section nodes.
 
D

Dave Lind

That's true, but it isn't very flexible in that way. For example, you can't
get the numbering to continue correctly after you insert the child section.
This is what I was trying to get:

1. Parent
2. Parent
2.1. Child
2.2. Child
3. Parent
3.1 Child
4.Parent

Is there some rule or somethin so that I could continue the numbering so
that the new parent added after the child wouldn't start from number 1. again?
 
S

Swathi (GGK Tech)

Hi,
Use the following expression as default value in the parent repeating table
field (field1).
count(../preceding-sibling::my:group2) + 1
And use the following expression as default value in child repeating table
field(field2).
concat(../../../my:field1, ".", count(../preceding-sibling::my:group4) + 1)

if the xpaths are in the following format.
/my:myFields/my:group1/my:group2/my:field1
/my:myFields/my:group1/my:group2/my:group3/my:group4/my:field2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top