Hints & tips

Dealing with checkboxes

Using checkboxes with form.taxi is quite simple. Since only activated checkboxes are transmitted by the browser during form submission, we recommend that you insert a hidden field with the same name in the HTML source code of the form, in addition to the checkbox field. This allows this field to always be present in the submission data, even if the checkbox has not been activated.

Here is an example with an additional hidden field:

<form action="https://form.taxi/s/FORM_CODE" method="POST">

    <input type="hidden" name="Callback requested" value="No">
    <input type="checkbox" name="Callback requested" value="Yes">

    <input type="submit" value="Send">

If the checkbox is not activated in this example, the field "Callback requested " is transmitted with the value No.

Encoding of the form inputs

The optional attribute enctype in the HTML code of the form specifies in which encoding the form input should be transmitted. When using form.taxi, the following encodings are to be used:

Form without file uploads

For a common form without file upload fields, you can omit the enctype attribute in the form tag or use it with this specification:

<form enctype="application/x-www-form-urlencoded" action="..." mathod="post">

Form with file uploads

If the form is used to transfer files the enctype attribute must be entered with the following value in the form tag:

<form enctype="multipart/form-data" action="..." mathod="post">

The text/plain value for the enctype attribute is not supported by form.taxi.