Ignoring Validation on a Button

我的未来我决定 提交于 2019-12-12 05:59:00

问题


I'm adding a "Cancel" button to an XPage that has a form with many required fields. When I click the "Cancel" button, it runs through the validation and gives me the errors. Is there code I can put inside the Cancel button that will ignore the validation requirements and simply go back to the previous page?


回答1:


Every event supports two options for bypassing validation:

Select "Process data without validation" to update the data model (i.e. document) and run the event code without executing any validators

Select "Do not validate or update data" to run the event code without running validators or updating the data model. This latter option is ideal for cancellation buttons.



来源:https://stackoverflow.com/questions/21756790/ignoring-validation-on-a-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!