To use a custom validator you must add it to the form, passing it field elements on which the validation needs to be applied, as shown in Listing 14.
要使用定制验证器,必须将其添加到表单,并为它传递需要被验证的那些字段元素,如清单 14 所示。
On the General tab of the Properties pane, add $field[@name='CustomerID'] as a custom XPath expression as shown in Figure 25.
在Properties窗格的General选项卡上,将 $field[@name='CustomerID']作为自定义XPath表达式添加,如图 25 中所示。
On the General tab of the Properties pane, add $field[@name='CustomerID'] as a custom XPath expression as shown in Figure 25.
在Properties窗格的General选项卡上,将 $field[@name='CustomerID']作为自定义XPath表达式添加,如图 25 中所示。
应用推荐