Hi there, I would like to enumerate list items in my survey form automatically (e.g. trees recorded on a sample plot). How should I go about it? And what happens when an item is removed from the list? Can the items affected re-enumerated?

Thanks!

asked 09 Oct '14, 20:28

Andras's gravatar image

Andras
1408817
accept rate: 0%


Hi, If the items that you want to enumerate are entities, like for example a table of trees, you can simply enable the option "Show row number in tables" in the entity editor in Collect Survey Designer: the number of each row will be automatically shown in the data entry form. If you need to do something more complex and you want to use that number in other expressions, you can define a calculated attribute like "tree_num" for example and you can define this expression as Default Value expression: "idm:position()". The result will be very similar to the previous solution. You can try both the solutions and see how the data entry form appears using the "Preview". Thanks

permanent link

answered 09 Oct '14, 21:21

OF%20Collect's gravatar image

OF Collect ♦♦
2.0k5
accept rate: 19%

edited 09 Oct '14, 21:26

Thanks for the answer! How about removing an item from the list and re-enumerating?

(10 Oct '14, 09:03) Andras Andras's gravatar image

The re-enumeration is automatic if you use the first solution. If you use the second one, the re-enumeration will be automatic in the next release of Collect (3.3.2). Thanks!

(10 Oct '14, 09:27) OF Collect ♦♦ OF%20Collect's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×279

question asked: 09 Oct '14, 20:28

question was seen: 2,010 times

last updated: 10 Oct '14, 09:27