You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by 許議中 <jo...@soho.club.tw> on 2005/07/03 06:05:36 UTC

how to get validation status in flowscript

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