If you don't know HTML, don't worry! You can add complex questions and inputs to your actions without writing a line of code using our visual form builder.
Click the blue "Add Or Edit Additional Form Questions" button on the create page to launch the visual form builder.
In the pre-built questions section on the right, you will have the option to add the address and city fields to actions that don't usually come with them: petitions, events, and forms. You will also see any pre-built questions that have already been made for your group. Learn more about questions here.
To add a pre-built question to your form, click the dropdown to choose the question you want to add, then click and drag the question that pops up to the left, the "Your Form" section on the left.
As you drag a gray box will show you where your question will appear -- move your cursor up or down while dragging to place your question above, below, or in between other questions and get your order right. You can click and drag on a component on the left at any time to reorder it, or drag it out of the "Your Form" section to remove it.
If you have permissions, you can also add new questions to your form that you haven't created previously. To do that, choose a blank question type from the blank questions section on the left.
Just like pre-built questions, to add a blank question such as a text box or a checkbox, drag the question you want from the right side into the "Your Form" section on the left. As you drag a gray box will show you where your component will appear -- move your cursor up or down while dragging to place your question above, below, or in between other questions and get your order right. You can click and drag on a question on the left at any time to reorder it, or drag it out of the "Your Form" section to remove it.
After you've dropped and ordered your question, click on it to open up the details window and customize it. If it's a pre-built question, the only option you will have is to make it a required question or not, which will prevent an activist from submitting the form without answering the question. Otherwise, here you can choose a name for your question or choose to make it a tag question, a label, and a placeholder that appears in the question for textareas and text inputs or a list of radio buttons, checkboxes, or dropdown menu options for those input types.
The name is the custom field column heading that will store your user's data when they fill out this input. As explained in the custom HTML form input section, you can choose any name you want.
Using the same names on different pages will allow you to pull the same data across pages and will overwrite an activist's past answer stored in that form name. For example, if you use the question name "story" to collect people's stories on multiple pages, when you pull a report for the column name "story" you'll receive stories from every page using that question name unless you limit your targeting to one page or another, with the latest story per activist.
This means that you can collect standard information (like phone number) from activists by using the same form name every time. If you would like to make sure no overwriting occurs, use a unique form name on each page (like "social_security_story" instead of just "story").
Note: Activists may only have one value per custom field on their record. So if they enter data in a question again, it will overwrite any old data in that custom field.
Note that checkboxes use name differently, as you could potentially have more than one value for the same name because an activist checked more than one box. To avoid this, we append the checkbox's label to the end of the name you choose. (ex: If you chose the name "employed" and had checkboxes for "yes" and "no", then these boxes would be stored in the database under the names "employed_yes" and "employed_no.")
Also note that you can enter in a blank line for your select options to output a blank option -- useful when making a select box required but forcing your users to choose an option by making the top line blank.
You can also choose to make checkboxes, radio buttons, or dropdown menus tag activists instead of storing custom fields by clicking that link when you edit the question's details. If you do so, when an activist checks the box or chooses an option, the corresponding tag will be added to their record. Instead of names and values, you'll type the tag's name to add that tag to an activist's record. Tags need to be created before you can add them to activists. Read the question marks for how to format your input so you're adding the correct tags, and see here for more about tags.
When you're done editing the details, click the "Save" button to save your details and see your changes in the "Your Form" section. Click on a question to open the editing screen again to make changes.
Note that you can scroll the visual form builder screen, in case your form gets too long and you need access to items lower on the page.
When you're completely finished, click the "Save Form" button to close the visual form builder and return to the create page. You'll see your the custom form questions you just built, showing you exactly what they will look like when you publish. Save your action to save your changes.
To edit your custom form questions at any time, click the "Add or Edit Additional Form Questions" button to re-enter the visual form builder.
Note: If you change the sponsor of the action, all custom form questions you've created will be removed. You will be prompted to confirm your change before form questions are deleted.