Skip to main content
gabm74089244
Participant
November 27, 2024
Question

Adobe order

  • November 27, 2024
  • 1 reply
  • 530 views

Hi, 

I have different risks on a doc and for every risk, there is a value between 1 and 10.

at the end of the doc, i want all the risk listed accroding to the value (from the highest to the lowest)

is this something that is doable??

thanks!!!

This topic has been closed for replies.

1 reply

PDF Automation Station
Community Expert
Community Expert
November 27, 2024

Yes it's doable but you have to be more specific.  What type of fields are the risks in and what at the values?

gabm74089244
Participant
November 27, 2024

The risks would be text field that are already written and the value would be a number from one to ten.

for exemple

risk no.1

value: 8

text

 

risk no2

value: 10

text

 

risk no.3

value: 4

text

 

 

at the end of the doc, all the risk are listed. When the value is put in the pages below, the list is put in order like this

risk no2 - value 10

risk no1- value 8

risk no3- value 4

try67
Community Expert
Community Expert
November 27, 2024

You would need to collect the risk numbers and their values into an array (of literal objects, or even of arrays), sort it (using a custom sort function), and then print out the results to the text field's value.