Validate form fields from InfoPath custom code
-
22-09-2019 - |
문제
I'm developing an InfoPath form for Forms Services. It has these views:
- View 1 asks the user to input some basic initial data
- View 2 calls a web service based on data in View 1 and populates drop-downs accordingly
At the bottom of View 1 I've added a Next >
button to move to View 2. As part of clicking that button I would like the inputs in View 1 to be validated first. However, there don't appear to be any rules that validate a view or anything in the object model to execute validation rules.
Is there code that can trigger a field's validation event?
해결책
The answer to this, at least for InfoPath 2007 (which this question is targeted at), is no. The only solution is to handle all validation manually.
제휴하지 않습니다 StackOverflow