Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip
iconfalse

There are 2 ways to pre-populate form fields in your form.

Thai

มี 2 ​​วิธีในการเติมฟิลด์ของแบบฟอร์มล่วงหน้าในแบบฟอร์มของคุณ

1. Set from the request parameter

Thai

ตั้งค่าจากพารามิเตอร์คำขอ

By matching the actual field id, one can pre-populate the form field with the value set in the request parameter.

For example, the text field ID is "title", we can use the request parameter with the same name to pre-populate the text field's value.

If you wish to make it as read-only, you may use the *fk_*title as the parameter name ( "fk_" as the prefix). If you wish to make it editable, you may use the "fke_" prefix.


Thai

โดยการจับคู่ ID ฟิลด์จริงผู้ใช้หนึ่งสามารถเติมข้อมูลฟิลด์แบบฟอร์มล่วงหน้าด้วยค่าที่ตั้งไว้ในพารามิเตอร์คำขอ

ตัวอย่างเช่น ID ฟิลด์ข้อความคือ "title" เราสามารถใช้พารามิเตอร์คำขอที่มีชื่อเดียวกันเพื่อเติมค่าของฟิลด์ข้อความล่วงหน้า

หากคุณต้องการให้เป็นแบบอ่านอย่างเดียวคุณสามารถใช้ชื่อ * fk_ * เป็นชื่อพารามิเตอร์ ("fk_" เป็นคำนำหน้า) หากคุณต้องการทำให้สามารถแก้ไขได้คุณสามารถใช้คำนำหน้า "fke_"

2. Get from request parameter

Thai

รับจากคำขอพารามิเตอร์

In the form element's properties, navigate to the Value attribute. Use the Request Parameter Hash Variable to retrieve the value set in the request parameter.


Thai

ในคุณสมบัติขององค์ประกอบแบบฟอร์มให้ไปที่แอททริบิวต์ค่า ใช้ Request Parameter Hash Variable พารามิเตอร์เพื่อดึงค่าที่ตั้งไว้ในพารามิเตอร์คำขอ

Related Elements

Thai

องค์ประกอบที่เกี่ยวข้อง