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

Specify a default value for fields #29

Open
m3nu opened this issue Jun 2, 2018 · 3 comments
Open

Specify a default value for fields #29

m3nu opened this issue Jun 2, 2018 · 3 comments
Assignees

Comments

@m3nu
Copy link
Collaborator

m3nu commented Jun 2, 2018

Since we cleared the XML templates of values it may be useful to keep default values in fields.yml. Like "invoice" for ram:Name (document name).

@m3nu m3nu changed the title Specify a default value for fields? Specify a default value for fields Jul 3, 2018
@m3nu
Copy link
Collaborator Author

m3nu commented Jul 3, 2018

Sometimes a default value won't be practical or risky. But where it's possible there should be one.

Implementation steps:

  • implement code to read default values from fields.yml
  • add default values to fields.yml where they make sense.

@duskybomb
Copy link

Possible uses of implementing code to read default values:

  • add default value to loaded empty xml template?
  • user can check default values?

@m3nu
Copy link
Collaborator Author

m3nu commented Jul 3, 2018

point 1 - yes

point 2 - not sure what you mean. When a value is assigned to a field the user sees it of course.

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