Question Macro | Community
Skip to main content
Level 2
August 18, 2021

Question Macro

  • August 18, 2021
  • 1 reply
  • 1584 views

Hello,

I'm very new here and I don't know much about macros.

I have a question. I have a forms that contain 100+ text boxes, many of them preceded by a numbering (In a separate text object)   so

((1)  (blablablabla))

((2) (blablabla)) etc... (Where () represent an object/subform)

 

Sometime we insert a line between 2 other and... we need to manually changes all the numbering.

I was wondering if it was possible to have a macro that could do this job automatically

 

For example, something like "previous#+1" to all object that start with "ItemNumber_" in the hierarchy. Something like that would be so helpful.

 

I hope someone can help me with that.

 

Thank you.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kosta_Prokopiu1
Adobe Employee
Adobe Employee
August 18, 2021

Assuming this is a AEM Forms Designer form

If you have a dynamic table you an use the index of the parent (Row1) (0 based that is why I add 1)

When you add a line (here I add a t a fixed position) and use remerge the Numbers will recalculate.

 

 

Asuryan37Author
Level 2
August 18, 2021

Hello.

Thank you for your answer.

Actually, it's not a table, only simple text boxes within sub forms (a table is not an option unfortunately)

 

Thank yo again 🙂 

Kosta_Prokopiu1
Adobe Employee
Adobe Employee
August 18, 2021

tabels are just a fancy construct of subforms and fields 🙂 you can do the same with subforms instances and fields inside the subform. 🙂