チョイス列の種類の表示上部の表示
-
29-09-2020 - |
質問
私はタイプ選択と同じ記述を設定したリストを作成しました。ラジオボタンを「表示の選択」を「選択」に設定しています。
新しい項目をクリックすると、説明が下部に表示されます。UIフォーマットを失い、jQuery / Designer / CSSを使用して「TOP」の説明を表示できる方法はありますか。添付画像は例です
私たちはInfoPathを通してそれを実行できることを知っていますが、Inpopathを使用して、InfoPathはこのRequentEmen
を使用しているため、編集item.aspxページにいくつかのJavaスクリプトがあります。解決
改善の余地があると確信していますが、ここでは作業サンプルです。
jQuery(document).ready(function () {
//narrow down matching to dialog boxes only
if(location.href.indexOf('IsDlg=1') !== -1)
{
$(".ms-dialog td.ms-formbody > span > table > tbody > tr:first-child > td > span.ms-RadioText").each(function(){
//console.log('found the first option of the current choice list');
var descriptionElement = $(this).closest('.ms-formbody').contents().filter(function(){ return this.nodeType != 1; });
var descriptionText = $(descriptionElement).text();
$(descriptionElement).remove();
$(this).closest('.ms-formbody').prepend('<span>' + descriptionText + '</span>');
});
}
});
. 他のヒント
Solution を提供するためのTiago。そのため、ここに複数のテキストの行を説明するために説明を移動したい場合はコードがあります。
$("td.ms-formbody > span > textarea.ms-long").each(function(){
var descriptionElement = $(this).closest('.ms-formbody').contents().filter(function(){ return this.nodeType != 1; });
var descriptionText = $(descriptionElement).text();
//alert(descriptionText);
$(descriptionElement).remove();
$(this).closest('.ms-formbody').prepend('<span>' + descriptionText + '</span>');
$('.ms-long').css({'height':'auto','display':'block','margin-top':'10px'});
});
. 所属していません sharepoint.stackexchange