我是Info路径的新手,我知道如何使用字符串长度函数限制输入到文本框中的no.of字符。但有没有什么办法可以限制输入到多行文本框中的单词数量。
例如,要求输入10个单词的字段较小
2 个答案:
答案 0 :(得分:1)
Found the answer and wanted to share it
Set a Validation Rule for the field(textbox). In the condition select the "The expression" and type the below condition
string-length(field)-string-length(translate(field," ","")) <10
here field is the name of the textbox. And enter the text in the Screen Tip (Eg: Only lesser than 10 words) and click more option if you want ScreenTip and dialog box message.
For testing in the preview type more then 10 words and hit tab the dialogue box with Only lesser than 10 words will appear
答案 1 :(得分:0)
选择文本框属性
在Display
标签
中
选中Limit the Textbox to:
的复选框,然后在
中输入限制文本框的数字
点击OK
按钮
现在文本框只允许10个字符