Replacing FORM_FIELD_TYPES
Enum with a Dynamic Table
#15
MEHRSHAD-MIRSHEKARY
started this conversation in
Ideas
Replies: 1 comment
-
Yes that is a good idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the
DynamicField
model indj-dynamic-form
uses a staticFORM_FIELD_TYPES
enum (a list of tuples) to define available field types, such as"text"
,"number"
,"dropdown"
, etc. While this works well for a predefined set of options, it limits extensibility for users who might want to add custom field types without modifying the package's source code.I propose replacing this enum with a dedicated
FieldType
model (a database table) to make field types dynamic and user-configurable. This change would:"phone"
,"multi_select"
) via the database or admin interface.Current Approach
Proposed Approach
Beta Was this translation helpful? Give feedback.
All reactions