Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Field Display Order in New Record Modals for Relation Fields #5603

Closed
athshean opened this issue May 6, 2023 · 6 comments
Closed

Comments

@athshean
Copy link

athshean commented May 6, 2023

I was trying to create a new record in a table that had related entries in other tables. When I got to the relation field, selected 'Add New Record'.

The order in which the fields were presented in the Add New Record modal were in the order in which the columns were first created on the table. Is there a way to reorder this? Or alternatively, is there a way to link the New Entry modal to an existing form view for the table?

I'd like to be able to change the order in which these fields are displayed so things like Forename is right after Surname in the screenshot. And all lists of relations from other tables are hidden.

Screenshot from 2023-05-06 11-16-06

So far the only workaround I have is to create a new table entirely where I define the columns in order, but it gets messy when columns from other table relations get added.

So far the table is an SQLite table (as I'm still just testing). I don't know if it's possible to do this in a MySQL database under the hood later. Not sure if that would affect this.

@dstala dstala changed the title Field Display Order in New Record Modals for Relation Fields Feature: Field Display Order in New Record Modals for Relation Fields May 10, 2023
@reenphygeorge
Copy link
Contributor

Can I work on this issue @dstala ?

@dstala
Copy link
Member

dstala commented May 18, 2023

@reenphygeorge How do you propose to solve this? can you add a brief note here?

@reenphygeorge
Copy link
Contributor

I was planning to make the fields in the modal "draggable". After re-ordering the fields, the new order of fields will be stored along with the project data. This could save more time as re-ordering the fields in a database is not practical (creating new table with fields in the new order and copying old data). Now every time the fields will be rendered in the updated order. Initially the order of fields will be the same as that in the database.

@dstala
Copy link
Member

dstala commented Sep 1, 2023

@athshean the order of fields displayed in expanded form can be controlled by re-ordering fields in associated table. hope that helps. maintaining an explicit order otherwise will be cumbersome.

To re-order fields in a table, use drag drop icon from fields menu in the toolbar of that table

@dstala dstala closed this as completed Sep 1, 2023
@andrewkrain
Copy link

@dstala the order of fields in the table is enforced on the New Record from if called from within said table (which is what you are referring to and it makes perfect sense), but not when its called from within another related table via a relationship field (which is what OP is referring to and i'm struggling with as well). can you please reopen this issue?

cc @athshean @reenphygeorge

@andrewkrain
Copy link

@dstala - have you seen my comment above?

cc @athshean @reenphygeorge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants