GoLess
  • Basics
    • Recording Actions
    • Adding workflow manually
    • Tutorial: Scraping data
  • Workflow
    • Customization
    • Blocks
    • Global Data
    • Variables
    • Element Selector
    • Expressions
    • Workflow Table
    • Looping
    • Google Drive
  • Blocks
    • General
      • Note Block
      • Trigger Block
      • Execute Workflow Block
      • Delay Block
      • Export Data Block
      • HTTP Request Block
      • Blocks Group
      • Clipboard Block
      • Wait Connections Block
      • Notification Block
      • Workflow State
      • Parameter Prompt Block
    • Browser
      • Active Tab Block
      • New Tab Block
      • Switch Tab Block
      • New Window Block
      • Proxy Block
      • Go Back Block
      • Go Forward Block
      • Close Tab/Window Block
      • Take Screenshot Block
      • Browser Event Block
      • Handle Download Block
      • Handle Dialog Block
      • Reload Tab Block
      • Get Tab URL Block
      • Cookie Block
    • Web Interaction
      • Click Element Block
      • Get Text Block
      • Scroll Element Block
      • Link Block
      • Attribute Value Block
      • Forms Block
      • Javascript Code Block
      • Trigger Event Block
      • Switch Frame Block
      • Upload File Block
      • Hover Element Block
      • Save Assets Block
      • Press Key Block
      • Create Element Block
    • Control Flow
      • Repeat Task Block
      • Conditions Block
      • Element Exists Block
      • While Loop Block
      • Loop Data Block
      • Loop Elements Block
      • Loop Breakpoint
    • Data
      • Insert Data Block
      • Delete Data Block
      • Get Log Data Block
      • Slice Variable Block
      • Increase Variable Block
      • RegEx Variable Block
      • Data Mapping Block
      • Sort Data Block
    • Оnline Services
      • Google Sheets Block
    • Premium
      • ChatGPT Block
      • Captcha Block
  • REFERENCE
    • Logs
    • Schedule
    • Storage
    • Packages
    • Condition Builder
    • Workflow Common Errors
    • JavaScript Execution Context
Powered by GitBook
On this page
  • Get form value
  • Form type
  1. Blocks
  2. Web Interaction

Forms Block

PreviousAttribute Value BlockNextJavascript Code Block

Last updated 1 year ago

This block receives or fills in the value of the form element (input, select, checkbox, and radio).

Please note:

This block cannot function without an active tab. For this reason, use the Active Tab block or the New Tab block before using this one.

Below is a screenshot of the block settings.

The block has two modes of operation: CSS Selector or XPatch. In the first mode, the block must receive a css selector of the page element for its operation. In the second mode, the block receives the Xpath of the element. To get a selector, you can use the Element selector tool of the Goless extension.

  • Settings of the Selector options group:

  1. Multiple. Multiple element selection.

  2. Mark element. The item will not be selected if it was selected earlier.

  3. Wait for selector. Wait for the selector to be received. When you select this element, you can enter the timeout of the selector.

If you need to get information from an element, select the Get form value setting.

Get form value

Receive the value of the form element. After selecting a setting, two settings are available to save the received data:

  • Assign to variable. Set the value of a variable or not.

  • Insert to table. Assign a value to a table column. This setting is usually used in cycles where the rows of the internal workflow table are filled in sequentially.

Form type

To get data from an html page element, select the element type in the Form type setting. A screenshot with configuration options is shown below:

  • Text field. A text field to fill in. Settings for this type:

  1. Value. The value of a text field element such as and , or an element with a contenteditable attribute.

  2. Clear form value. This removes the value from the text field element before inserting the new one.

  3. Typing delay. This adds a time limit when inserting each character of the value. When set to 0, it is inserted immediately.

  • Select. A selection item from a list of values. Settings for this type:

  1. Value. The value for the element. To select a specific option for a selection item, you can enter the value of the option you want to select into it. The parameter value can be found using the Element Selector tool or Chrome DevTools.

  1. First option. Selecting the first value in the item list.

  2. Last option. Selecting the last value in the item list.

  3. Custom. Selecting a value in the list by index.

  • Checkbox & Radio. Select the checkbox or radio element or not.