This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release18.12 by this push:
new 3e76bb7 Fixed: placeholder text has been implemented but seems to do
nothing (OFBIZ-12548)
3e76bb7 is described below
commit 3e76bb7193bd8cb040ba14f445ceb88ad7f58940
Author: Jacques Le Roux <[email protected]>
AuthorDate: Tue Feb 1 08:48:08 2022 +0100
Fixed: placeholder text has been implemented but seems to do nothing
(OFBIZ-12548)
Adding this to a form in a widget/somethingForms.xml file:
<field name="description" title="${uiLabelMap.CommonDescription}"
required-field="true"><text placeholder="This is placeholder text"/></field>
Does not throw a error, but when the form is displayed, no placeholder text
appears. I've checked the html code in the browser to confirm that it
wasn't
white placeholder text on a white background, and it does not define the
placeholder property in the generated html.
Are there any cases where placeholder text does work? If so, it would be
nice
if a working example could be added somewhere (like someone in ofbiz,
or maybe in the "example" plugin)
Thanks: ddev for report and spotting the missed commit of
OFBIZ-5341-Example.patch in OFBIZ-5341
---
example/widget/example/ExampleForms.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/example/widget/example/ExampleForms.xml
b/example/widget/example/ExampleForms.xml
index 0129351..e55dfe9 100644
--- a/example/widget/example/ExampleForms.xml
+++ b/example/widget/example/ExampleForms.xml
@@ -206,6 +206,7 @@ under the License.
</drop-down>
</field>
<field name="exampleName"
title="${uiLabelMap.FormFieldTitle_exampleName}" required-field="true"><text
/></field>
+ <field name="exampleName"
title="${uiLabelMap.FormFieldTitle_exampleName}" required-field="true"
widget-style="required"><text
placeholder="${uiLabelMap.FormFieldTitle_exampleName}"/></field>
<field name="description" title="${uiLabelMap.CommonDescription}"/>
<field name="longDescription"
title="${uiLabelMap.ExampleLongDescription}"/>
<field name="anotherText">