Expand my Community achievements bar.

Dynamic Paragraph Numbering

Avatar

Level 2
I have been charged with building a document that will need to have the paragraphs numbered. That in and of itself is not a large problem, but the possibility exists that the user would need to delete a previously entered paragraph during the building process and the paragraph numbers would need to be dynamic ally reassigned based on that deletion. Does anyone have any coding suggestions to accomplish this task.
1 Reply

Avatar

Former Community Member
Angie_Buie@adobeforums.com wrote:

> I have been charged with building a document that will need to have the paragraphs numbered. That in and of itself is not a large problem, but the possibility exists that the user would need to delete a previously entered paragraph during the building process and the paragraph numbers would need to be dynamic ally reassigned based on that deletion. Does anyone have any coding suggestions to accomplish this task.



Your best bet is to build this using dynamic subforms. Each subform

would have a text field to contain a single paragraph. The number for

the paragraph would be the index number of the subform. You can

dynamically add or remove subforms with buttons and some javascript.



Justin Klei

Cardinal Solutions Group