Hello,
I added the WIH control 'Complete' to my form, which has a bunch of checkboxes that are mandatory.
The complete WIH control requires the form to validate before it goes to the NewFormDataReceiver.
However, when published and I run the application, the validations show up as the yellow warning signs, but the form still completes, rather than stopping like it's set up in the event.
Please advise on how to fix this. Thank you.
I added the WIH control 'Complete' to my form, which has a bunch of checkboxes that are mandatory.
The complete WIH control requires the form to validate before it goes to the NewFormDataReceiver.
However, when published and I run the application, the validations show up as the yellow warning signs, but the form still completes, rather than stopping like it's set up in the event.
Please advise on how to fix this. Thank you.
RE: Bizflow WIH validations not working
That does seem strange, and is not the behaviour I would expect.
The easiest way to track this down might be to have a look at an export of your project so that I can see the exact settings that you have and try it out at this end.
If that is not possible, can you let me know the details you currently have configured for the onWorkitemComplete External Event? Are these just the defaults from the 'WIH Complete Requested' control, or have you made any changes?
Also, can you check if you are getting any script errors at runtime when the validation is being performed, and can you confirm which WebMaker version you are using?
Thanks,
Gerard
RE: Bizflow WIH validations not working
I apologize but I cannot provide an export of the project.
The onWorkitemComplete External Event is the default from the WIH Complete Requested control. No changes were made.
The only javascript errors that I see when running the application is:
WARN> Error: Permission denied to access property 'getWIHActionClient' on GET at dojo/dojo/fx.js
The Webmaker version that I'm using is 6.0
RE: Bizflow WIH validations not working
Don+?+?+?t worry about the export - I appreciate it is not always possible to provide these.
I believe that it is normal for the error message you mention to be seen when testing the project locally. This occurs because the page is trying to communicate with the BizFlow work item handler that normally contains it, but this is not present when running the project locally.
I don+?+?+?t think that this should affect the validation behaviour, but it would be useful to know if you get the same issues when testing a published version of the project.
To help track down why the validation is not preventing the submit it might be worth adding some alert messages to the process.
From the page design tab, select the page level properties, and enable the 'Show popup alert for errors?' option under 'Error Message'.
Now switch to the page level events, and open up the 'External Events' section. You should see the onWorkitemComplete entry here, which has an If +?+?+? Then +?+?+? Else setup. Add a different Alert Message action to the start of both the Then and Else sections.
If you now save and test the project it would be interesting to see which alerts you see. If the checkboxes aren+?+?+?t ticked you should get an alert detailing the errors, and then one for the 'else' message you have added.
Does your page contain any types of fields other than checkboxes? If not, it might be worth temporarily adding a mandatory text box field to the page as well to see if that alters the validation behaviour in any way.
Another thing that would be useful to know is whether you are able to replicate this behaviour on another page, or if it is just this specific one that has the problem.
Sorry for asking lots of questions, but I haven+?+?+?t been able to replicate this problem with my testing here, so we need to get some more details to try and narrow down exactly what is causing it.
Regards,
Gerard