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

[REQUEST] adding "default" property for formfields #1332

Closed
falkheiland opened this issue Mar 24, 2024 · 5 comments
Closed

[REQUEST] adding "default" property for formfields #1332

falkheiland opened this issue Mar 24, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@falkheiland
Copy link

Is your feature request related to a problem? Please describe.
I would like to create an app and define a changeable default value via formfields.

Describe the solution you'd like
Create a property type "default", and show it and make it editable on the installation dialogue

  "form_fields": [
    {
      "type": "number",
      "label": "Maximal upload size in byte",
      "default": 26214400,
      "env_variable": "FILE_STORAGE_UPLOAD_MAX_SIZE"
    }
  ],
@falkheiland falkheiland added the enhancement New feature or request label Mar 24, 2024
@MontejoJorge
Copy link
Collaborator

You can use default values directly in docker. Meanwhile you could use that.

@MontejoJorge MontejoJorge added the good first issue Good for newcomers label Mar 25, 2024
@falkheiland
Copy link
Author

falkheiland commented Mar 25, 2024

how would that help the user when installing an app from the tipi app store so the default value can be seen and either kept or changed?

maybe "default" is not a sufficient term - "prepopulated" would probably add.

@MontejoJorge
Copy link
Collaborator

To tell the user what the default value is, the apps use the hint or the label itself.

maybe "default" is not a sufficient term - "prepopulated" would probably add.

I think the default property would be enough.

@meienberger
Copy link
Collaborator

I think it would be nice to be able to see the default value pre-populated in the UI for user feedback

@steveiliop56
Copy link
Collaborator

Hello,

There is now both a default option and a placeholder option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants