Blocs allows you to easily integrate forms into your projects using the various form Brics available.
Adding a form
To add a form to a page, press the D key to enter drop mode, then hit the 0 key to view the Bric library. Using the search field in the Bric library, type forms. The brics will be filtered to show only the form items, the first item on the far left (the fully built form) will be automatically loaded into the current active drop space.
Hit the Return key to hide the Bric library and then move the cursor to the area you wish to add the form and left click to set it in place on your page. Take care to exit drop mode by pressing the D key before editing the form values.
Setting up a form
Once you have a form in place on your page, it will require a little configuration before it will work as desired. Making sure you are no longer in drop mode, move the cursor towards the edge of one of the form fields to reveal the outer form container hover marker. Once this marker is revealed left click and the form will be activated for editing.
You will now be presented with the form options on the sidebar menu. The two main sections that require attention are the Sendto and From input fields. In the Sendto field, enter the email address you would like the forms data sent to and in the From field, enter the email address you would like the form to be posted via (this data will show in your email client as sent from). With these options set correctly the form should operate as desired after your project is exported as long as the site is hosted on a web server that supports PHP.
As well as the Sendto and From input fields, there is also another field labelled Subject, use this input field to set the subject line for the emails that will be sent from this form.
From the form options you can also set the success interaction and the fail message for the selected form. The success interaction is triggered if the form is successfully posted and the fail message is shown if there is a problem that prevents the form from posting.
The success interactions offer three options that can be triggered when a form is successfully posted. The first and most basic is to show a success message on the same page, the second is to go to a specific page in your Blocs project and the third is to go to a specific URL.
Although Blocs creates all of the required PHP server side code to process and post forms, remember form posting will not work when your site is run from a computer desktop. Forms will only be processed and sent when hosted on a web server with PHP support.
If your form is not sending, first check your spam folder at your receiving email address in case the emails have been moved there accidentally by the email client. Also check your Blocs project to confirm that all of the Bric items within the form such as text fields, radios and checkboxes have unique ID’s set. Finally, check that the server you are running your site from supports PHP.
If the problem persists, contact support in-app via the apps main menu Help > Contact Customer Support. Take care to include as much information as possible, including any live URL’s to your website.