Giter VIP home page Giter VIP logo

Comments (4)

pawelad avatar pawelad commented on August 22, 2024

I already commited a fix for this in my local fork, but I was also thinking about using the Model values of help_text (and possibly other such as default, required and so on) to be the default (and by that I mean initial) values when adding that field to OmniForm.

Let me know what you think about it - as far as I know not doing that could be done on purpose.

from omni-forms.

fatboystring avatar fatboystring commented on August 22, 2024

Hi Pawel. Sorry but I'm not sure I completely understand. Is there any chance you could rephrase please?

from omni-forms.

pawelad avatar pawelad commented on August 22, 2024

Sorry about that, I see how what I wrote can be confusing.

The problem menton here will be definitely solved by #9, but while fixing it I found another thing that I think is missing and wanted to note it somewhere (in retrospect maybe here wasn't the best place for that ; ).

What I meant was that when adding a field to a OmniForm we are given an opportunity to set field's 'options' such as 'help_text', 'required' and so on, but the initial/default values for them aren't taken from the field initialization.
For example when adding username field to User model OmiForm, I think it would be great to see help_text filled with Django's default 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.' that could be then edited. The same could be done to other mirrored field options.

from omni-forms.

fatboystring avatar fatboystring commented on August 22, 2024

Aha, now I follow. Yes that's not a bad idea at all. Is definitely a different feature so not something for this ticket but thanks for bringing it up

from omni-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.