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

Add/Remove Array Elements in Form mode #1625

Open
Flydroid opened this issue Oct 30, 2024 · 1 comment
Open

Add/Remove Array Elements in Form mode #1625

Flydroid opened this issue Oct 30, 2024 · 1 comment

Comments

@Flydroid
Copy link

Flydroid commented Oct 30, 2024

I'm using the "form" mode to allow users to values in json data. The data is also validated with a json schema.

For some data/schemas the users would need to add or remove array elements.

Is it possible to enable the custom action menu in "form" mode and configure it to only provide the add and remove functions on arrays?

@josdejong
Copy link
Owner

The form mode is indeed quite limited, adding/removing array items would be very neat indeed. To to be able to support that though, we would need to know the structure of the array items: often, an array contains objects with specific properties. I think to propertly implement that, we need to require a JSON Schema document describing the structure.

I'm open to a PR solving this. Anyone interested in picking this up?

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

No branches or pull requests

2 participants