How do I change the order selection of an item dynamically?

I want the user to be able to select the order in which the elements appear.
For example, if the user wants the price to appear before the product name.

image

add a field called ‘sort order’ on this data type.
Then sort it by this sort order value.
Let the user change the sort orders by rearranging

Yes, as ranjit said you need to add a field in the datatype to let the users rearrange both fields. Use up and down icons to let the users rearrange. For example, if the user clicks on the second item to move upwards then change the order of that to 1 and simultaneously change the order of the first from 1 to 2. The same goes when the user clicks on downwards for the first item.

This topic was automatically closed after 70 days. New replies are no longer allowed.