验证/格式化单行文本框以根据Nintex中的列表查找下拉项限制字符? [英] Validating/Formatting a single line text box to limit characters based on a list lookup drop down items in Nintex?

查看:55
本文介绍了验证/格式化单行文本框以根据Nintex中的列表查找下拉项限制字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以...我有一个列表查找下拉控件,里面有几个项目。我想知道我是否能以某种方式验证或格式化它旁边的单行文本框以限制用户输入的字符数量,当从列表中选择项目时查找
control?

So... I have a list lookup drop down control with several items in it. I was wondering if I could somehow validate or format a single line text box beside it to limit the amount of characters the user inputs, when selecting an item from the list look up control?

推荐答案

Darius,

Darius,

是的,这可以通过代码实现。如果使用JavaScript / jQuery,则可以使用PreSaveAction函数创建代码文件。在此,您将检查所选值,然后检查单行文本字段的长度。然后使用代码验证它是否合适。

Yes this is possible with code. If you use JavaScript/jQuery you can create a code file with a PreSaveAction function. In this you would check the value selected and then the length of the single line of text field. Then use the code to validate it fits.

PreSaveAction函数在SharePoint保存之前触发。

The PreSaveAction function fires right before SharePoint saves.


这篇关于验证/格式化单行文本框以根据Nintex中的列表查找下拉项限制字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆