Documentation

Web Form HTML field names

Web form questions

When showing a web form, all answers to the questions are represented as HTML fields. Users fill in these fields to answer questions. The table below describes relation between the names of HTML fields and the answer type.

Answer type Description HTML field name Value
text Single line text field. form_text_answer_id Typed text.
textarea Multiple line text field. form_textarea_answer_id Typed text.
password Single line text field for password input. form_password_answer_id Typed text.
date Single line text field for date input. form_date_answer_id Typed text.
radio Radio button. form_radio_question_sid Selected answer ID.
dropdown Drop-down list. form_dropdown_question_sid Selected answer ID.
checkbox Multiple selection list. form_checkbox_question_sid[] The selected answer ID's array.
multiselect Multiple selection list. form_multiselect_question_sid[] The selected answer ID's array.
file File upload field. form_file_answer_id Array describing the uploaded file.
image File upload field. form_image_answer_id Array describing the uploaded file.
hidden * Hidden field. form_hidden_answer_id Data from web form hidden field.
* - available only for simplified web form edit mode.
Legend

Web from fields

Besides answers to a web form questions, it is essential to display and edit web form field values. The table below describes relation between the names of HTML fields and the field types.

Field type Description HTML field name Value
text Text form_textarea_ADDITIONAL_field_id Typed text.
integer Integer form_text_ADDITIONAL_field_id Typed text.
date Date form_date_ADDITIONAL_field_id Typed text.
Legend
  • field_id - web form field ID.

See Also



© «Bitrix24», 2001-2024
Up