Hello,
I've seen a lot of posts where people want/need the ability to sort or reorder the data in a Forms table. In some cases this can be done relatively easily with JavaScript that moves the data around, but in other cases it can be exceedingly difficult to accomplish.
In my current situation, I have a form that allows users to upload files with fields/inputs on each row of the table to be associated with the file. The ordering of the files is critical, and currently I have only 2 options.
- Add a field where the user can input the number value for the sequence.
- Force the user to upload files in order
I've looked into JavaScript methods for providing users the ability to reorder the rows, but the file upload complicates things. Because Forms assigns a lot of attribute/property values connected to the row index, there is not really an easy way to move things around manually.
What I would like to see in a future version of Forms is the ability to add sorting/ordering buttons to a table so Forms could handle this internally.
For example, Up/Down arrows to move individual rows, or sorting buttons on the table column headers so users could sort the data based on a column value.
I'd envision these as both being separate options for the table settings in the layout designer, perhaps with the column sort option being attached to column fields so users could allow sorting based on one or more of the columns.