Other Hỏi làm sao custom thread fields bắt buốc phải điền ?

aathuat

Private
Mình tạo ở Applications => Custom Thread Fields
nhưng khi thành viên post ko điền nó cũng post đc
h thêm trường gì để Custom Thread Fields bắt buộc phải điền vô mới post đc ?
thanks VNXF
 

Đính kèm

  • 2.jpg
    2.jpg
    147.4 KB · Lượt xem: 676
Bạn phải vào tab cuối cùng: General Options. Check vào ô Field is required.
Không biết nhớ đúng không, bạn check thử nhé.
 
Bạn phải vào tab cuối cùng: General Options. Check vào ô Field is required.
Không biết nhớ đúng không, bạn check thử nhé.


Thế mình có 1 cái addon gọi là Simple Refer, thêm form nhập người refer vào lúc đăng ký.

Để bắt buộc phải nhập thì làm thế nào ạ?

Mình thêm input class="required" nhưng không được.
Mã:
 <modification template="register_form" modification_key="liam_simpleRefer_register_form" description="" execution_order="10" enabled="1" action="str_replace">
      <find><![CDATA[<xen:if is="{$xenOptions.registrationSetup.requireLocation}">
       <dl class="ctrlUnit">
           <dt>
               {xen:phrase location}:
               <dfn>{xen:phrase required}</dfn>
           </dt>
           <dd>
               <input type="text" name="location" value="{$fields.location}" class="textCtrl" />
           </dd>
       </dl>
   </xen:if>]]></find>
      <replace><![CDATA[$0
<dl class="ctrlUnit">
   <dt>{xen:phrase referrer}:</dt>
   <dd>
       <input type="text" name="referrer_name" value="{$fields.referrer_name}" class="textCtrl AutoComplete AcSingle" />
   </dd>
</dl>]]></replace>
    </modification>
 
<input type="text" name="referrer_name" value="{$fields.referrer_name}" class="textCtrl AutoComplete AcSingle" required />
Cũng giống như các form html khác, bạn thêm required vào là nó bắt buộc người dùng phải nhập vào.
 
<input type="text" name="referrer_name" value="{$fields.referrer_name}" class="textCtrl AutoComplete AcSingle" required />
Cũng giống như các form html khác, bạn thêm required vào là nó bắt buộc người dùng phải nhập vào.


Không có tác dụng gì bác ạ (nó làm mất hiển thị addon luôn)

Sumon @THB có cao kiến gì không ạ
 
Back
Top