[
https://issues.apache.org/jira/browse/OFBIZ-13361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18062049#comment-18062049
]
Pierre Smits commented on OFBIZ-13361:
--------------------------------------
Hi [~FloMo],
For sure, these addition could be useful in front-end renderings. But what are
the associations with data types of the various database options? Having looked
at the PR, I did not see any additions in the various field type files in the
framework/entity/fieldtype folder.
It seems to me that, if we want to capture values for these new input types in
forms, that these should be stored in the db as well.
What are your thoughts?
Best regards,
Pierre
> Form inputs: support more input types
> -------------------------------------
>
> Key: OFBIZ-13361
> URL: https://issues.apache.org/jira/browse/OFBIZ-13361
> Project: OFBiz
> Issue Type: Task
> Affects Versions: Upcoming Branch, 24.09.05
> Reporter: Florian Motteau
> Priority: Minor
>
> Since [https://github.com/apache/ofbiz-framework/pull/862,] OFBiz uses native
> browser validation, and various input types (see
> [https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).]
> It would be interesting to support other simple input types, such as
> *
> [color|http://example.com|https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/color]
> *
> [range|https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/range]
> The `type` attribute of the `<text/>` form widget is forwarded as a `type`
> attribute on the HTML `<input/>`, so we just have to modify the XSD to accept
> these 2 values. Then we would have to support `min` and `max` attributes to
> be able to use the `range` input.
> The `color` type is juste a convenient input method for hex colors, so we
> just need to update the XSD.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)