Comments (4)
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.
Hi Pawel. Sorry but I'm not sure I completely understand. Is there any chance you could rephrase please?
from omni-forms.
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.
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)
- Save instance handler should require all required model fields to exist in the form
- Test against django 1.11 and python 3.6
- Handlers not integrated with non model forms
- Add help text to OmniField model fields
- Add better widget handling for 'initial' field on OmniField form initial fields HOT 1
- omnifield model 'name' field may only contain alphanumeric characters and undercores
- Add verbose_name and verbose_name_plural attributes to model meta for field models
- OmniField concrete models 'initial' field clashes with form.initial
- Support for ChoiceField and MultipleChoiceField required
- Add wagtail support HOT 1
- Allow developers to specify field/handler classes to omit from the wagtail CRUD views (specifically create views)
- OmniForm instance should be passed to related forms in wagtail admin views
- It must be possible to override the base form class for a given field or handler in wagtail
- It must be possible to 'lock' a form based on its state
- Readthedocs integration
- It should not be possible to edit/delete existing fields/handlers on a locked form
- The admin list view for omni forms should show whether or not a form is locked
- Add send email handler for email submitted via form
- Related field handler model should be abstract
- Include friendly handlers and descriptions of form fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omni-forms.