cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 許議中 <john...@soho.club.tw>
Subject how to get validation status in flowscript
Date Sun, 03 Jul 2005 04:05:36 GMT
Hi!

I've a form with v2 flowscript,in fd I design a button
 <fd:action id="save" action-command="shkh" defaul="false">
 <fd:label><i18n:text key="save">save:</i18n:text></fd:label>
   <fd:on-action>
    <fd:javascript>var parent = event.source.parent; 
     parent.validate();</fd:javascript>
   </fd:on-action>
 </fd:action>
and in flowscript I design a onClick

 var button2 = form.lookupWidget("sure");
 button2.onClick = function() {
    --want to know the validation of the form if pass pr not.
 }

how to capture the validation staus in flow.

Best Regards

johnson
Mime
View raw message