AjaxProcessCommand

Top  Previous  Next

  <input name="__pcommand" type="button" value="${commandName}
         onclick="if (AjaxMgr.submitProcessForm({{formName:${formName},commandName:${commandName}}}) == false) return false;" 
         mo:name="${commandName}" mo:type="ProcessCommand" 
         mo:props="requiredBlocks:'${requiredBlocks}', validateInput:${validateInput}
                   confirmMessage:'${confirmMessage}', beforeSubmitFunc:${beforeSubmitFunc} "/>

 

${commandName}

The name of the ProcessCommand

${formName}

The name of the ProcessForm

${requiredBlocks}

The names of the ProcessBlocks (separated with commas) existing in the ProcessForm that needs to be validated before the submission.

${validateInput}

Select "true" if you want that the input fields are validated before submitting the ProcessForm.

${confirmMessage}

The message text to be displayed when asking users' confirmation to submit.

${beforeSubmitFunc}

The name or the Javascript function to be called just before the submitting the ProcessForm.