创建时自定义验证Sharepoint列表???? [英] Custom Validation For Sharepoint List while Creating????
问题描述
 我试图从内容类型字段中获取值,以使用presave函数进行一些验证。
我的问题是在尝试获取列表项字段的值时,我的代码正在运行但是某些原因我没有得到内容类型字段?所以请关于这个问题的任何一个帮助..
示例:
        var displaypositionText = findFieldControl('ItemFiledName')。val();
现在我在这里查看displaypositionText(value)。
    var displaypositionText = findFieldControl('ContentTypeItemFiledName')。val();
现在我为此displaypositionText(value)提交了Undefined。
此致,
Surakshith
Surakshith
内容类型呈现为select元素,因此您可以使用jQuery获取所选值。
示例脚本:
('select [id
=" ContentTypeChoice"]')。find(":selected")。text()
最好的问候,
利跨度>
Hi,
I am trying to get the value out of the content Type field to do some validation using presave function.
My Problem is while trying to get the value of list item field my code is working but some reason content type fields I am not getting??So Please any one help regarding this issue..
Example:
var displaypositionText = findFieldControl('ItemFiledName').val();
Now I geting displaypositionText(value) here.
var displaypositionText = findFieldControl('ContentTypeItemFiledName').val();
Now I am getting Undefined for this displaypositionText(value) filed.
Regards,
Surakshith
Surakshith
Hi,
Content type render as select element so you could use jQuery to get the selected value.
Sample script:
('select[id
="ContentTypeChoice"]').find(":selected").text()Best Regards,
Lee
这篇关于创建时自定义验证Sharepoint列表????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!