Forms

The Builder comes with the option of handling form submissions. When the end-users opts to use The Builder’s form handling, The Builder will take all the submitted data and email it to the email address supplied by the end-user (Bloxby is not currently storing form submissions).

To setup a form, the end-user will need to hover the mouse cursor over the form until the the red outline appears around the form. Next, the end-user will need to click the edit icon (the icon shaped as little pen). This will bring up the style editor on the right side of the window.

Within the Form tab, the end-user can opt to either send the form data by email or to specify a custom action. Specifying a custom action will result in the value entered in the input field being inserted into the “action” attribute of the form.

If the end-user opts to send the form data by email, he or she can specify an email address to send the data to as well as a custom confirmation message (which appear after the form has been submitted). Please note the confirmation message is optional, if left empty, the default confirmation message will be displayed.

Advanced form settings

Bloxby allows for setting several additional options which determine how submitted forms are handled. These additional settings are applied by adding hidden input fields to the form. This can be done by using the HTML source code editor.

The additional options currently available are the following:

  • Custom subject
    Sets a custom subject for the email sent by the API

    <input type="hidden" name="_subject" value="My awesome subject">
  • Custom reply to
    Sets a custom reply to value for the email sent by the API

    <input type="hidden" name="_replyto" value="johndoe@gmail.com">

    Instead of specifying a static custom “reply to” address, you can also choose to use an email address entered by the user of the form. In order to do this, give your custom “replyto_” field a value of “%” followed by the name of the field. Let’s assume you have a field named “email” which value you’d like to use for your custom “reply to” field, then you’d give you “reply to” field a value of “%email”.

    <input type="hidden" name="_replyto" value="%email">
  • Redirection
    Allows you to specify a URL to redirect the user to after successfully submitting the form and sending out the email

    <input type="hidden" name="_after" value="http://google.com">
  • Honey pot SPAM detection
    The honey pot field adds an additional spam protection to your forms. By inserting this hidden field, you’re allowing the API to detect automated submissions. If the API fields a value inserted into the honey pot field, this is a strong indication that the submission as automated and it will be marked as spam. Please note that the “value” attribute of this field must remain empty.

    <input type="text" name="_honey" value="" style="display:none">
  • CC and BCC recipients
    Use the following syntax to specify one or more CC and/or BCC recipients. Please note the name of this field is “cc[]” or “bcc[]”. This allows you to specify any number of entries, rather then just one.

    <input type="hidden" name="cc[]" value="johndoe@gmail.com">
    <input type="hidden" name="bcc[]" value="janedoe@gmail.com">
  • Field validation
    The builder comes with built-in form validating capabilities. You can specify a variety of rules for your data; and if the submission does not pass the validation process, the user will be shown a message detailing which validation rules were not passed.
    The validation syntax is simply and straightforward. You simply add a hidden field for each form field you’d like validated, and you name this hidden field “_valid[field_name]” where you replace “field_name” with the name of the field. Please see the basic example below:

    <form action="/sent/api/me@gmail.com" method="post">
        <input type="hidden" name="_valid[name]" value="required">
        <input type="hidden" name="_valid[email]" value="required|valid_email">
        <input type="hidden" name="_valid[message]" value="required">
        <input type="text" name="name">
        <input type="email" name="email">
        <textarea name="message"></textarea>
        <input type="submit" value="Send">
    </form>

    In the example above, the form contains three fields to be filled out by the user: name, email and message. Accordingly, three hidden validation fields have been added to the form as well. The “name” field must validate as required, meaning it can not be left empty. The same applies to the “message” field. The “email” field is also required, and in addition it must validate as a proper email address. If any of these requirements are not met, the user will get an error message explaining what is wrong with their data. Below you’ll see an overview of all available validation rules:

Updated on February 22, 2021

Was this article helpful?

Related Articles

Linda had been playing the spanking game with her boyfriend all night. They had been drinking and dancing and making each other giga720p.com laugh until they were both too drunk to stand. When they finally stopped for the night, Linda followed her boyfriend into his pornodocs.com bedroom, where he promptly fell asleep. Linda was horny and wanted to feel his hand smacking her butt, so she quietly got nudepornos.com out of bed and pulled down her panties. She went to the door to make sure her boyfriend was still asleep and pornobold.com then crept out of the room. Linda went down the hall to her own room, where she quickly undressed and got into bigtitscollege.com bed. She was lying there, thinking about how she was going to get her boyfriend's hand on her butt when she heard bigtitskit.com a noise coming from his bedroom. Linda slowly got out of bed and tiptoed to the door, where she peeked her head bathhd.com through the crack to see her sleeping boyfriend with his hand resting on his bare butt. Linda quickly stuck her head back gfsbonk.com inside the room and closed the door, laughing uncontrollably