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

Support more complicated default input values in create mode #976

Open
RFSH opened this issue Apr 26, 2023 · 0 comments
Open

Support more complicated default input values in create mode #976

RFSH opened this issue Apr 26, 2023 · 0 comments
Labels
discussion required requires a discussion before moving forward

Comments

@RFSH
Copy link
Member

RFSH commented Apr 26, 2023

In the recordedit create form, we're populating the inputs based on the default value that ermrest reports. While ermrest allows and reports functions like now() in this property, ermrestjs/chaise only support simple raw values that conform to the column type. So now() is ignored by ermrestjs/chaise.

In this issue, we would like to explore the ability to allow more complicated "default" values. We don't necessarily need to use the default property that ermrest reports and could potentially do this by using annotations that only ermrestjs/chaise understand.

One thing that users asked for is the ability to populate date inputs with the current date. We should discuss whether any other functions (or computed values) we would like to support.

@RFSH RFSH added the discussion required requires a discussion before moving forward label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion required requires a discussion before moving forward
Projects
None yet
Development

No branches or pull requests

1 participant