2014-02-11 36 views
0

在我的分享點網站集合中有一個列表,所以如何將一個字段的文本框轉換爲範圍控件或其他控件。如何更改編輯或新窗體中的控件?

我只能看到下面的代碼,

<SharePoint:FormField runat="server" id="ff23{$Pos}" ControlMode="New" FieldName="Certifications" __designer:bind="{ddwrt:DataBind('i',concat('ff23',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Certifications')}"/> 
<SharePoint:FieldDescription runat="server" id="ff23description{$Pos}" FieldName="Certifications" ControlMode="New"/> 

,但只顯示文本框,我不知道如何在這方面的文本顯示,而我想做的事情,得到一些其他控件,如輸入類型=「範圍」

回答

0

一個簡單的方法是用javascript來完成。

document.getElementById("id_of_field").type="range"; 

你可能想的jQuery添加到網頁中,如果您還沒有它可以更容易查找領域:

$("input[title='Certifications']").type = "range"; 
相關問題