cancel
Showing results for 
Search instead for 
Did you mean: 

Why is this form asking me to fill out the required fields?

kooktroop
Champ in-the-making
Champ in-the-making
I'm using the following XSD for a web form. All I fillout is the 'name' and I get an error saying 'Please provide values for all required fields'. None of the fields are highlighted in red, I can't workout why this is being asked. I also filled out each of the fields… and it still gives me the same error.


<?xml version="1.0" encoding="utf-8" ?>
<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.processmentor.com"
    xmlns:pm="http://www.processmentor.com"
    xmlns:alf="http://www.alfresco.org"
    elementFormDefault="qualified">

  <xs:complexType name="templatesectionreference">
    <xs:sequence>
      <xs:element name="ref" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
      <xs:element name="optional" type="xs:boolean" default="true"  minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
 
  <xs:complexType name="templatesections">
    <xs:sequence>
      <xs:element name="templatesectionreference" type="pm:templatesectionreference" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
 
  <xs:element name="templatesection">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="name" type="xs:normalizedString" minOccurs="1" maxOccurs="1" />
        <xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" />
        <xs:element name="templatesections" type="pm:templatesections" minOccurs="0" maxOccurs="1" />
        <xs:element name="requiredsections" type="pm:templatesections" minOccurs="0" maxOccurs="1">
          <xs:annotation>
            <xs:appinfo>
              <alf:label>Template Sections Required By This Section</alf:label>
            </xs:appinfo>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Thanks in advance.
16 REPLIES 16

arielb
Champ in-the-making
Champ in-the-making
nothing here seems out of the ordinary.  i'll try out it and get back to you but i'm guessing you've found a bug.

arielb
Champ in-the-making
Champ in-the-making
hmmm….  i'm not seeing any problems with this form - it's behaving as expected.  what version of the product are you on?

kooktroop
Champ in-the-making
Champ in-the-making
"Alfresco 2.0 Preview (WCM BETA)", I think it is the most recently released (unless you've released the end of march release).

I've tried creating an entirely new Web Project and this form still doesn't want to work.

kooktroop
Champ in-the-making
Champ in-the-making
Sorry just to recorrect, I'm running the latest release, the GA release.

kooktroop
Champ in-the-making
Champ in-the-making
I've now discovered that this occurs across all of my Web Forms.

I'm not sure exactly what has triggered this. I will do some investigation.

kooktroop
Champ in-the-making
Champ in-the-making
It looks like there is a bug when using the Web Forms with Firefox. I've submitted a JIRA issue http://issues.alfresco.com/browse/WCM-409

arielb
Champ in-the-making
Champ in-the-making
i haven't yet done any testing with firefox 2.0.  i'll take a look at it soon.  in the meantime, try 1.5 or IE.

thanks for putting the useragent string in the bug description - extremely helpful.

eyestreet
Champ in-the-making
Champ in-the-making
FYI: Clearing all alfresco related cookies in your browser will usually fix this problem.

Harry

brek
Champ in-the-making
Champ in-the-making
FYI: Clearing all alfresco related cookies in your browser will usually fix this problem.

Harry

hi, i tried but didn't fix.
I use Alfresco 2.1 Firefox 2.0.0.6, but i have the same error with IE 6.