Bỏ qua tới nội dung chính
DemoZalo 0862020654

Tương tác

Điền form

Thao tác với phần tử form (input, select, checkbox, radio)

Mã block: forms

Bảng cấu hình của khối Điền form trong trình soạn workflow.
Bảng cấu hình của khối, đúng như trong trình soạn thảo.

Đầu vào

TênKiểuMặc địnhMô tả
disableBlockbooleanfalseTắt khối này
descriptionstring—Mô tả khối
findByselectcssSelectorLoại selector
cssSelectorxpath
selectorbắt buộcstring—CSS selector hoặc XPath
waitForSelectorbooleanfalseChờ selector xuất hiện
waitSelectorTimeoutnumber5000Thời gian chờ selector (ms)
markElbooleanfalseLàm nổi bật phần tử
multiplebooleanfalseChọn nhiều phần tử
formTypeselecttext-fieldLoại phần tử form

Ví dụ: text-field

text-fieldselectmultiple-selectcheckboxradio
valuebắt buộcstring—Giá trị cần nhập/chọn
selectedbooleantrueTrạng thái chọn (checkbox/radio)
clearValuebooleantrueXóa nội dung cũ trước khi nhập
getValuebooleanfalseLấy giá trị hiện tại
selectOptionByselectvalueChọn option theo

Ví dụ: value

valuetext
optionPositionstring1Vị trí option (tính từ 1)
delaynumber0Độ trễ giữa các ký tự khi gõ (ms)
eventsarray[]Sự kiện cần bắn kèm
saveDatabooleantrueChèn vào bảng dữ liệu của workflow
dataColumnstring—Tên cột trong bảng
assignVariablebooleanfalseGán vào biến
variableNamestring—Tên biến

Đầu ra

  • valuestring

    Form value (if getValue)