I am working with portals in my solution and in my portal i use different categories.
I have a select checkbox where i select the orders i want to take from this portal (rows). And i have a button preview to see only the checked orders.
But i want them to have a number 1, 2, 3, ect and this counting to start from 1 every time i have a new category.
I have managed to get it done with a script, but i want to know if there might be a better way and simplier way to do it.
Any suggestions ?
First photo attached is where i select the orders, i select whatever i want from them
second photo is how it looks like (field number is different as the second one is for sorted)
Is there a better way ?