Saturday, 8 March 2014

Infopath Text box Minimum characters

Infopath Text box Minimum characters


Add new hidden Text box control
Right click the hidden control
Select Text box properties
From Data Tab–>In the Value filed
Click on FX
Enter below formula
string-length(Title) < 3
Here Title is Control name which we are getting character count.
Now add a new rule for Title text box
Select validation
From Condition
Click on None
From popup, select hidden control name in the first drop down
Select is equal to in 2nd drop down
in the 3rd drop down select type text
Enter true
Click OK
In the screen Tip:
Title Must have at least 3 characters long.