Page 1 of 1

Using value element attribute in metadata textarea field

PostPosted:Fri Jan 06, 2023 11:06 pm
by mmceldowney
Hello. I'd like to use a read-only text field to display instructions for the next field in metadata. I am trying to use the value attribute, which the documentation says is available, and it is listed as an optional attribute in the DTD, but I get an error when I try to submit the xml file.

Image

Below is my xml. It works if I remove the value attribute, so I know the xml format is good.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.3//EN"
                                 "http://www.openkm.com/dtd/property-groups-2.3.dtd">

<property-groups>
    <property-group label="Testing Metadata" name="okg:fubar">
        <textarea label="Instructions" name="okp:fubar.instructions" width="200px" readonly="true" value="I'll put instructions for the next field here" />
    </property-group>
</property-groups>

Image

I don't understand why the parser is throwing an error.

OpenKM version is 6.3.9CE and browser is Firefox 108.0.1.

Thanks for any insight you can give!

Re: Using value element attribute in metadata textarea field

PostPosted:Sat Feb 11, 2023 7:30 pm
by jllort
That happens because, in the dtd, the textarea does not have the attribute value. I suggest adding an issue at https://github.com/openkm/document-management-system