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 Request: Default Values #48

Closed
tsteckenborn opened this issue Sep 25, 2023 · 7 comments
Closed

Feature Request: Default Values #48

tsteckenborn opened this issue Sep 25, 2023 · 7 comments

Comments

@tsteckenborn
Copy link

Defaulting to fixed or dynamically calculated values would be a great addition.

@danielo515
Copy link
Owner

This was in my roadmap, indeed.
I think the most flexible way of doing it is by passing them as a configuration option to the current openorm function.
So:

api.openForm('person', { values: { name: this.file.title }}) 
// this is an actual usecase of mine 😅 

That aditional configuration option will also allow to set other options like fields to hide and fields to pick as stated on #39

@danielo515
Copy link
Owner

This has been addressed in #53 for basic input types. I'm not sure yet about the more complex ones

@tsteckenborn
Copy link
Author

Yeah, works fine. Everything related to dataview related fields seem to not yet work. So might need to think about something in this regards. Now I think one big quality of live improvement for me would be cross reference. E.g. if one field is a project, and another one is persons, to change the query based on the selected project. But that's probably going to be tough.

@tsteckenborn
Copy link
Author

@danielo515: Should it work for Text Area? Seemed to fail for me for that one when passing in a string.

@danielo515
Copy link
Owner

danielo515 commented Oct 9, 2023 via email

@tsteckenborn
Copy link
Author

By the way are you planning to release officially? Got quite some cool uses out of it and would like to refer to it more easily (even though text areas still seem bugged 😅)

@danielo515
Copy link
Owner

danielo515 commented Oct 14, 2023 via email

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

2 participants