I've added an enhanced button on to a pop-up control that will be used to call the WIH Complete button.
The anchor activated "code"....
IF Field 'reason' not equal to 'blah'
THEN
Call the 'Complete' Bizflow WIH action
Submit the form to action 'saveForm'
Clicking the button in Bizflow only completes the form if all the mandatory fields are populated.
As I have not specified this information in my anchor code how do I switch it off?
Thanks
[hr][/hr]
It would appear the code goes on and calls the External Events which in turn validates the form.
I have now added an additional condition which checks a field value which I set when clicking the button. this bypasses the validations.
The anchor activated "code"....
IF Field 'reason' not equal to 'blah'
THEN
Call the 'Complete' Bizflow WIH action
Submit the form to action 'saveForm'
Clicking the button in Bizflow only completes the form if all the mandatory fields are populated.
As I have not specified this information in my anchor code how do I switch it off?
Thanks
[hr][/hr]
It would appear the code goes on and calls the External Events which in turn validates the form.
I have now added an additional condition which checks a field value which I set when clicking the button. this bypasses the validations.
RE: Bizflow WIH action Validations
It is important to realise the when you call one of the BizFlow WIH actions (such as +?+?++complete+?+?+?) from an event, WebMaker tells the WIH to perform that action, which is generally the same as clicking the button in the WIH directly.
Therefore if you have the relevant External Event defined (eg onWorkitemComplete) this will get called.
The default functionality for these external events (when dragged on from the WIH controls) is to first validate the form which would explain what you are seeing.
This also means that you do not generally need to include a +?+?++form submit+?+?+? action after calling a BizFlow action, as the external event functionality will handle that already.
As you have noted, the easiest approach to resolve your requirement is to add an additional condition in the external event definition to bypass the validation after your button has been clicked.
Regards,
Gerard