Hello every one:
when I create one document definition I want to compare two fields value use Script in rule tab,
And I want to implelement some function:
1.if one field value is empty ,no need to compare.
2.if both fields are not empty ,then if their not the same need show the error message to user in verfication station .
when I create one document definition I want to compare two fields value use Script in rule tab,
And I want to implelement some function:
1.if one field value is empty ,no need to compare.
2.if both fields are not empty ,then if their not the same need show the error message to user in verfication station .
Comments
2 comments
if (not me.Field("Field1").Text = "" and not me.Field("Field2").Text = "") and (not me.Field("Field2").Text = me.Field("Field1").Text) Then
Me.HasRuleError = true
me.CheckSucceeded = false
me.ErrorMessage = "put error message here"
end if
if (not me.Field("Field1").Text = "" and not me.Field("Field2").Text = "") and (not me.Field("Field2").Text = me.Field("Field1").Text) Then
Me.HasRuleError = true
me.CheckSucceeded = false
me.ErrorMessage = "put error message here"
end if
Please sign in to leave a comment.