您的位置:首页 > 大数据 > 人工智能

How do you restrict a field to contain alphanumeric characters only?

2004-08-01 21:20 656 查看

This is an example of code that uses regular expressions to limit a field's entry. Put this in a field's Input Validation formula:
@If( @Matches(Serial_Num; "+{0-9}"); @Success;
@Matches(Serial_Num; "+{a-zA-Z}"); @Success;
@Do(@Prompt([OK];
"Invalid Serial Number";
"The Unit Serial Number contains an illegal character, probably a carriage return. Please remove the illegal character and save again.");
@Return("")) )
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐