sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
[Enhancement] Implement custom sorting of fields in a DynamicForm
Category
[x] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [Latest]
Expected / Desired Behavior / Question
I would like to see the ability to control the order of list columns that are rendered using a DynamicForm component. Assumption is that a property could be added to IDynamicFormProps.tsx "fieldOrder" that takes an array of internal field names that will be rendered in order, or similar.
It looks like IDynamicFieldProps already has an Order prop to work with, though I haven't figured out how to make that work in DynamicForm.
Thanks!
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for submitting your first issue to this project.
It looks like dynamic form uses the column order on content type level , you can configure content type column order as work around

Hi @tahawkins21,
Following linked PR merged, this enhancement should be available in the next beta release.
Thanks to you for raising this and @srpmtt for the contribution!