hello,
I'm working this cforms.
My forms are OK except for one thing :fd:on-value-changed :

<fd:field id="dossier.type" required="true">
<fd:label><i18n:text i18n:catalogue="biosec" key="dossier.type"/></fd:label>
  <fd:datatype base="string"/>
  <fd:selection-list src="cocoon:/listes/dossier_type.xml"/>
   <fd:on-value-changed>
   <javascript>
      java.lang.System.err.println("Was here!");
      java.lang.System.out.println("Was here!");
      print("was here");
      var datatype = event.source;
     var value = datatype.value; // value of datatype
      print("value");
     var users = datatype.parent.lookupWidget("dossier.organisme.nom");
     if (value!="") {
      users.setSelectionList("cocoon:/listes/organisme_cgb.xml");
      datatype.value = "";
     }
   </javascript>
       </fd:on-value-changed>
 </fd:field>

even if i change the value of my list, nothing is printed and the value of the other list isn't changed.
I think the javascript isn't read.

do you have an idea of what the problem can be?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to