♥️
City Leader Resources
  • Welcome!
  • Previous City Leader Meetings
  • City Leader Resources
    • City Leaders Manual
    • LOC Style Guide
    • Building a Great Team
    • Sponsors (Event & Annual)
    • Legal
      • DBA's & Sponsoring Org
      • Tips to Setting Up a 501c3
        • Bylaws and Governance
      • Insurance
      • Waivers
  • Volunteer Day Resources
    • Volunteer Day Checklists
    • Festivities & Kick Off Info
    • Event Promotion
    • Event Banners
    • Post-Event Email
    • Volunteer Day Video
    • Love (your city name) Vehicle
    • Big Red Costume
  • Project Ideas
    • Project Ideas
  • Marketing & Media Ideas
    • Tips & Tricks to Social Media
    • Personalized City Merchandise
    • Sponsor Thank You
    • Social Media Posts
    • Social Media Tips from
  • Initiative Partners
    • Year-Round Involvement Network
  • Website Reference
    • Website Refresh Video
    • Youtube Tutorials
    • Getting Started
      • Adding Your 1st Event & Project
      • Assigning Volunteers to Project
    • Admin Portal
      • Project Leader Tutorial
      • Contacts
        • Resetting User's Password
      • Emailing & Texting
      • Suggested Projects
      • Events
      • Sponsors
      • Settings
      • Projects
    • Understanding User Roles
    • Front-End Website
      • Updating Site Information
      • Assigning Key Pages
      • Adding a Page
      • Modules
      • Adding a Custom Form
      • The Content Builder
      • Managing your Theme
        • Page Options
        • Menus & Mega Menu
        • Page Templates
        • Layout
          • Header Layouts
          • Content Layouts
          • Footer Layouts
        • Header Layout
        • Theme Options
      • Love our Cities Modules
      • Resetting User's Password
Powered by GitBook
On this page
  1. Website Reference
  2. Front-End Website

Adding a Custom Form

Advanced Users Only

You can create custom forms with custom actions on your website. We have prebuilt your site with the following forms:

  • Contact Form

  • Registration Form

  • Create Account Form

  • Suggested Project Form

If you need a form outside of that, feel free to create one yourself. Add a module called "Action Form" and build your form.

Using our API to send emails

In your Submit Button, it is highly suggested to use our API to send an email. This allows branding and well formatted emails to be sent.

To do so, open the Submit button and under On Click Handler, click Import and paste the following code:

{
    "Title": "Server Request",
    "ActionType": "PostData",
    "Description": null,
    "Condition": null,
    "Parameters": {
        "InputParameters": "",
        "URL": "https://app.districttoolbox.com/DesktopModules/DnnSharp/DnnApiEndpoint/Api.ashx?method=LOC_EmailList-v2",
        "UrlTokenContext": {
            "Expression": "",
            "Value": "Url",
            "IsExpression": false,
            "Parameters": {}
        },
        "UseSSL": "",
        "Timeout": "",
        "HttpMethod": {
            "Expression": "",
            "Value": "POST",
            "IsExpression": false,
            "Parameters": {}
        },
        "Data": "Portal=[Tab:FullUrl]\nList=CustomForm\nSubject=SUBJECT HERE\nMessage=MESSAGE HERE\nEmail=[Email]\napiKey=o4ILRfLLJ8P2bVbfSYqABPNrTLGoil1Q",
        "DoNotEscapeTokens": "",
        "DisableReferer": "",
        "Headers": "",
        "UseDNNProxySettings": "",
        "AddCurrentCookies": "",
        "OutputParameters": "",
        "CookieContainerToken": "",
        "OutputTokenName": "",
        "OutputHeaders": "",
        "IgnoreErrors": "",
        "Events": "",
        "OnError": []
    }
}

Next, update the values under Data for "Subject" and "Message" to include content from your form. Content follows a token structure, so if you have a Text Box with a title of "First Name", the ID would be "FirstName". To add the submitted value into the Content of the email, include the following:

<p>First Name: [FirstName]</p>

The token [FirstName] will then be replaced upon submisison.

You can find more information here about our Action Form:

PreviousModulesNextThe Content Builder

Last updated 1 year ago

Action FormDNN Sharp Documentation Center
Logo