Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

Multi Select Box allows you to select multiple items with auto-complete behavior. Multi Select Box is a useful replacement for the ordinary ซีเล็กบล็อก (Select Box), particularly when there is a very long list of options to choose from. Options are displayed based on the user's input.

คุณสามารถเลือกได้หลายรายการ Multi Select Box เป็นอีกตัวเลือกที่มีประโยชน์ สำหรับตัวเลือกธรรมดา  ซีเล็กบล็อก (Select Box) โดยเฉพาะอย่างยิ่งเมื่อมีรายการตัวเลือกให้เลือกมากมาย ตัวเลือกจะปรากฏขึ้นตามอินพุตของผู้ใช้


Figure ภาพที่ 1: Screenshot of Multi Select Box in Form Builder ตัวอย่างมัลติซีเล็กบล็อกในแบบฟอร์ม 

Figure ภาพที่ 2: Screenshot of Multi Select Box in actual Form ภาพตัวอย่างแสดงมัลติซีเล็กบล็อกในแบบฟอร์มจริง

Figure ภาพที่ 3: Multi Select Box Propertiesคุณสมบัติมัลติซีเล็กบล็อก

NameDescription
IDElement ID (By declaring as รหัส (เมื่อประกาศชื่อ "country" , a corresponding database table column แล้ว จะมีการสร้างคอลัมน์ตารางในฐานข้อมูลว่า "c_country" will be created)
LabelElement Label to be displayed to end userชื่อที่จะแสดงให้ผู้ใช้เห็น.
Options (Hardcoded)

Select Box optionsตัวเลือกแบบกล่อง

Info
Options defined here will not be put into use if Options Binder is defined below.
ตัวเลือกที่กำหนดไว้ที่นี่จะไม่ถูกนำไปใช้หาก Options Binder ด้านล่างถูกกำหนด
Or Choose Options Binder

Options to be populated dynamically using ตัวเลือกเรดิโอโดยใช้ปลั๊กอินตัวเลือกแบบ Options Binder plugin.

Warning
titlePerformance Warning

If you have thousands of select options or sourcing them from Options Binder, this may cause significant increase on page load time. Consider using หากคุณมีตัวเลือกหลายพันตัวเลือกตัวเลือกนี้อาจทำให้เวลาในการโหลดหน้าเว็บเพิ่มขึ้นอย่างมาก พิจารณาใช้ ป๊อปอัพซีเล็กบล็อก (Popup Select Box) instead.  แทน

Figure ภาพที่ 4: Multi Select Box Properties - Advanced Options

NameDescription
Default Value

Default Value when there's no existing value found/selected.

ดีฟอลต์ค่าเริ่มต้นเมื่อไม่มีค่าใดๆ

คุณอาจใช้ตัวแปร Hash variable ตามตัวอย่างต่อไปนี้
Hash variable is accepted here. For example, you may key the following
Code Block
#currentUser.firstName# #currentUser.lastName#

to pre-populate the field with current logged in user's name.

เพื่อกำหนดชื่อผู้ใช้ที่ลงชื่อเข้าใช้อยู่ ลงในฟิลด์

คุณอาจกำหนดตัวเลือกเริ่มต้นหลายตัว คั้นโดยใช้เครื่องหมายอัฒภาคYou may define multiple default options by separating them using semicolons.

Code Block
titleSample
option1;option2;option3
Multiple SelectionToggle Multiple Selection.
การเลือกหลายรายการ
Field ID to control available options based on Grouping

Dynamically change the available options based on the "grouping" attribute defined in the options by matching to the current value of the element ID defined.

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

Width

ความยาว

Width

Column width in characters.

Code Block
titleSample
200px
Readonly

Determines if the element is editable.กำหนดว่าข้อความสามารถแก้ไขได้หรือไม่

Display field as Label when readonly?

Displays the value of the element as plain text when element is set to แสดงค่าของข้อความในรูปแบบข้อความล้วนๆไม่มีกล่องข้อความ เมื่อกล่องข้อความนั้นถูกตั้งค่าไว้ว่า "Readonly".

Validator

Attach a Validator plugin to validate the input value.แนบปลั๊กอิน Validator เพื่อตรวจสอบความถูกต้องของค่าที่ป้อนเข้ามา

Info
titleWhen will validation takes place?

Validation will takes place whenever form is submitted except when it is submitted as การตรวจสอบจะเกิดขึ้นทุกครั้งที่มีการบันทึกแบบฟอร์มยกเว้นเมื่อบันทึกเป็น "Save as Draft".

Workflow Variable

If the form is part of a workflow process, upon saving of the form (by clicking on ถ้าแบบฟอร์มเป็นส่วนหนึ่งของเวิร์กโฟลว์โพรเซส เมื่อบันทึกแบบฟอร์ม (โดยคลิกที่ปุ่ม "Save as Draft" or หรือ "Complete" button). The value in this input field will be saved into the corresponding workflow variable named here.) ค่าในฟิลด์อินพุตนี้จะถูกบันทึกลงในตัวแปรเวิร์กโฟลว์ที่ระบุไว้ที่นี่

Info
titleUsing a non-existent Workflow Variable name

You will get the following warning with the name printed out (e.g. status) in the server log if you attempt to map to a non-existent Workflow Variable.คุณจะได้รับคำเตือนต่อไปนี้โดยแสดงชื่อตัวแปรออกมา (เช่น status) ถ้าหากการบันทึกของเซิร์ฟเวอร์ไม่มีค่าที่พยายามแมปกับตัวแปรเวิร์กโฟลว์ได้

Code Block
context attribute status does not exist in process context - adding new attributes to the process context is not allowed


Related Video Tutorials

Widget Connector
urlhttps://www.youtube.com/watch?v=bmyLr0Y4Lz4