Several clients have asked for a way to make sure that all of the fields submitted by a supporter have the correct capitalization. While it's impossible to correctly capitalize every name that supporters use, the bulk of them can be handled correctly with a script in your template.
The solution is a script that capitalizes all of the input fields before they are sent to Salsa. Using this script is a two-step process: Upload and Install.
The script lives on a page in GitHub. For you to use it, it must be copied to Salsa. Here are some steps that you can use.
- Click here to see the page where the script lives.
- When the page appears, click on the
Rawbutton. A window will appear that contains only the solution.
- Use the browser's save tool to save the contents of the window to your disk. Be sure to name the saved file
capitalize_fields.js. This is important.
- Close the content window after you've save the file to disk.
capitalize_fields.jsfrom your disk to Salsa. Click here if you need help doing that.
- When the upload is done, Salsa will display the URL for the file. Since we'll need that URL for the installation step, you may want to copy it and paste it somewhere that you can retrieve it later.
Installation adds the script to a template. If capitalizing all words is important for all forms forever, then be sure to use these installation steps every time that you put a new template into service.
- Edit a template. Click here if you need help getting started.
- Use the browser's search tool to locate the
- Insert a blank line just before the
- Copy this text:
- Paste the copied text into the newly inserted line.
- Replace SCRIPT_URL_HERE with the script filename URL from step NNNN.
- Save the template.
If you have any questions, then please gather this information
chapter KEYif you are in a chapter of another organization
template_KEYof the template that you want to edit
- Where you were in this article
Send all of this information to firstname.lastname@example.org, and we'll be glad to help.