Open the menu
    ```html

    Form Builder: Generate HTML Form

    Features

    • It is an administration interface

    Screens

    Generate HTML Form

    When this option is selected, a form is displayed to provide the title of the form to be created and the HTML fragment that will be imported to create that form. The HTML fragment field for import will be initially filled with the HTML contained in the page holder where the interface instance is set up. If it is not in a page holder, it will initially be empty.

    The user can change the HTML fragment to be imported as desired, then must press the Next button to continue the import process or Cancel to cancel the process. After advancing, a summary of the form to be created by importing the provided HTML will be displayed. The user can then click OK to proceed with the creation, or Cancel to cancel the operation.

    The import will take into account elements <input>, <textarea>, and <select>. The element must have the name attribute filled in, or it will be ignored.

    The value of the name attribute will be registered as the field identifier. The field will be marked as required if its corresponding element has the required attribute.

    The label for the generated field will be obtained from the text contained in any associated <label> (according to HTML5 specifications). If no label text is detected in this way, the value of the corresponding name attribute will be used as the label.

    In the case of a group of checkbox or radio, its detected label corresponds to the respective option rather than a field. In this case, the field will have as label the name attribute, and the option, if no corresponding label is detected, will have as label the value in the value attribute. The value of the value attribute will also be registered as the option value. Elements of these types must have the value attribute specified, or they will be ignored.

    <select> elements must have at least one option defined, or they will be ignored.

    The types of fields generated will follow the following rule:

    • For <textarea> elements, long text fields will be generated.
    • For <select> elements with multiple attribute present, multiple choice fields will be generated.
    • For <select> elements without the multiple attribute present, selection combo fields will be generated.
    • For <input> elements with type attribute with value:
      • date fields will be generated as date type.
      • number fields will be generated as number type.
      • checkbox fields will be generated as multiple choice type, grouping the elements with the same name as options of the same field.
      • radio fields will be generated as single choice type, grouping the elements with the same name as options of the same field. radio elements will be ignored when there is not more than one with the same name.
      • email, search, tel, text, and url fields will be generated as short text type.
      • <input> elements with type attribute value different from those listed above will be ignored.
    The order of the fields created in the form will correspond to the order of the elements in the imported HTML.

    The form will be registered in the language used in the current session.

    If the service instance has a workflow that includes a transition between the initial state and the published state, that transition will be executed.

    Permissioning

    • Manage service instance: Allows managing all data of this service instance, including deleting it entirely.

    Actions

    • Validate HTML: Confirm that the imported HTML is valid
    ```