You can make a section of a form visible or hidden depending on the value of other form fields.

In the example below, we want to show only the "Rejection" section when "Status" is set to "Rejected".

คุณสามารถทำให้ส่วนของแบบฟอร์มที่มองเห็นหรือซ่อนอยู่ขึ้นอยู่กับค่าของเขตข้อมูลแบบฟอร์มอื่น ๆ

ในตัวอย่างด้านล่างเราต้องการแสดงเฉพาะส่วน "การปฏิเสธ" เมื่อตั้งค่า "สถานะ" เป็น "ปฏิเสธ"



Figure 1: Show/Hide Section Depending on Field Value

Configuration of visibility is done in the target section.  Remember to retrieve the information needed from the Select Box properties first.

รูปที่ 1: แสดง / ซ่อนส่วนขึ้นอยู่กับค่าของฟิลด์

การกำหนดค่าของการมองเห็นจะทำในส่วนเป้าหมาย อย่าลืมเรียกข้อมูลที่จำเป็นจากคุณสมบัติ Select Box ก่อน



Figure 2: Properties of Select Box "Status"

In Select Box properties, take note of ID and Options.  Next, go to the target section's properties, click on the Visibility tab and configure according to desired settings. 

An example is shown below.

รูปที่ 2: คุณสมบัติของ Select Box "สถานะ"

ในเลือกกล่องคุณสมบัติจด ID และตัวเลือก จากนั้นไปที่คุณสมบัติของส่วนเป้าหมายคลิกที่แท็บการมองเห็นและกำหนดค่าตามการตั้งค่าที่ต้องการ

ตัวอย่างที่แสดงด้านล่าง



Figure 3: Configuring Visibility in the Section

This particular section will only show when the settings in Visibility match.

รูปที่ 3: การกำหนดค่าการเปิดเผยในส่วน

ส่วนเฉพาะนี้จะแสดงเฉพาะเมื่อการตั้งค่าในการมองเห็นตรงกัน

Related Articles

บทความที่เกี่ยวข้อง