Page 1 of 1

Property Group issue. Cannot define value="" for input field

PostPosted:Wed Dec 30, 2020 4:21 pm
by jvezinat
<input type="text" label="Group" name="okp.IandT.group" readonly="false" value="test" />

This gives the error:

Attribute "value" must be declared for element type "input". Is value expecting something other than a quoted string? From the docs the value field is to set a default value.

value
Specifies a default value for this component.

There's a special case for date types. Data is stored in format "yyyyMMddHHmmss", be aware of this format when using OpenKM API.

false

Re: Property Group issue. Cannot define value="" for input field

PostPosted:Wed Dec 30, 2020 4:51 pm
by jvezinat
I instead used a select field with the option pre-selected. Would anyone please verify if you can just use value="test" within an input to set a default value, thanks!

Btw, i am using propertygroup dtd 2.3 with OpenKM CE 6.3.9.

Re: Property Group issue. Cannot define value="" for input field

PostPosted:Thu Dec 31, 2020 5:54 pm
by jllort
The name of the property is wrong "okp.IandT.group" should be "okp:IandT.group" ( see the ":" after okp ).

If not working share the XML definition.