Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3776 มุมมอง

I need a form view and I need its layout to be customized, using directly the Bootstrap 4 styles

How exactly can I do that ?

Also

I need some fields/tabs to appear conditionally (if some values is true) and such conditionally appearing fields need to be in my custom layout

Is this possible ?

How ?

First of all, I could use an example of a custom layout

And then I could use some enlightment on how the conditional appearing of fields is done, behind the scenes

Thanks in advance

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Custom Layout
You can use the class of bootstrap directly to Oddo as per your need.
for example:-
  <div class="row container">

                    <div class="col-12 text-center">

                    //content here

                    </div>

</div>
2. fields/tabs to appear conditionally
You can use attrs on the field/tabs as per your need. for example:-
         <field name="name" attrs="{'readonly': [('active', '=', False)]}"/>

         <notebook attrs="{'invisible': [('active', '=', False)]}">

//tab content

           </notebook>


  


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 22
5558
1
ม.ค. 25
1366
v18 Document layout Problem แก้ไขแล้ว
2
ธ.ค. 24
2243
3
มี.ค. 23
22073
1
ส.ค. 22
6966