Netsuiteを使用してオンラインフォームを作成しようとしています。netsuiteでフィールドタイプを変更するには?
私たちは、デフォルトで
NLSUBSCRIPTIONS
タグが、フィールドタイプを持っていると同じでは
など、姓、ファーストネームのように事前に定義されたフィールドのセットを持っているドロップです複数の選択オプションを使用して
このドロップダウンをチェックボックスに変更するにはどうすればよいですか?
Netsuiteを使用してオンラインフォームを作成しようとしています。netsuiteでフィールドタイプを変更するには?
私たちは、デフォルトで
NLSUBSCRIPTIONS
タグが、フィールドタイプを持っていると同じでは
など、姓、ファーストネームのように事前に定義されたフィールドのセットを持っているドロップです複数の選択オプションを使用して
このドロップダウンをチェックボックスに変更するにはどうすればよいですか?
カスタムテンプレートを使用する場合は、ドロップダウンを非表示にして、独自のチェックボックスを作成するためのオプションを繰り返すことができます。
<div class="regFieldWrap">
<span class='cbExpand hideNsLabel'><NLCUSTENTITY_LIST_FIELD></span><input class="otherShadow valid" type="text" name="custentity_list_field_other"><span class="multiProto cbHolder"><input type="radio" name="custentity_list_field"><label class="cbLabel"></label></span>
</div>
、その後
<script>
jQuery(function($){
// convert multi select to checkbox
$("span.multiProto").each(function(){
var proto = this;
var selName = $(proto).find("input").attr("name");
var otherCB = null;
$("select[name='"+selName+"']").css({display:'none'}).each(function(){
var sel = $(this);
var isReq = sel.hasClass('inputreq');
if(isReq) sel.removeClass('inputreq');
sel.find("option").each(function(){
if(!this.value) return;
var newby = $(proto.cloneNode(true));
var cb = newby.find("input").val(this.value);
if(isReq) cb.addClass('cb_selectone');
newby.find("label.cbLabel").text(this.text);
$(newby).removeClass('multiProto');
if((/\bother\b/i).test(this.text)){
var otherField = $("input.otherShadow[name='"+ selName+"_other']").each(function(){
var newOther = this.cloneNode(true); // strange but it gets around an IE issue
$(this).remove();
$(newby).find("input").data("conditionalOther", newOther);
newby.get(0).appendChild(newOther);
});
otherCB = newby;
} else proto.parentNode.insertBefore(newby.get(0), proto);
});
sel.get(0).options.length = 0;
});
if(otherCB) proto.parentNode.insertBefore(otherCB.get(0), proto); // make sure this is the end element
});
});
ご協力いただきありがとうございます。それは本当に私を助けます – ndh
オンラインフォームのどのようなタイプのこのですか?それはどこに変更を加えるのに役立つだろう。 – W3BGUY