🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Law Ruler Integration Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Step 1: Install and License the Add-on
  2. Step 2: Connect Your Law Ruler Portal
  3. Copy the endpoint URL and Key
  4. Save the settings
  5. Step 3: Create a Law Ruler Feed
  6. Contact details
  7. Address
  8. Case details and custom intake fields
  9. Lead source and assignment
  10. Field Mapping Reference
  11. Privacy and Data Handling
  12. Conditional Logic
  13. Developer Filter: gravityextra_lawruler_lead
  14. Checking Delivery on the Entry Screen
  15. Duplicates
  16. Troubleshooting & FAQ
  17. A submission did not reach Law Ruler. What happens?
  18. The lead was rejected because of the case type or status.
  19. Law Ruler says the key is invalid.
  20. A custom intake field stays empty in Law Ruler.
  21. The note says a contact name is required.
  22. Resource Hub

A potential client who fills in your “Free Case Evaluation” form expects a fast call back. The Gravity Forms Law Ruler Premium Add-on sends every intake or contact form straight to your firm’s Law Ruler portal as a new lead, with the contact details, address, case type, case summary, contact preferences, marketing source and custom intake fields already filled in.

This guide covers the connection, feed mapping, duplicates and resending.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.5 or higher
  • Law Ruler account: A Law Ruler admin user who can open Setup → 3rd Party Integrations to copy the API endpoint URL and Key
  • GravityExtra license: The Law Ruler add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and License the Add-on

  1. Go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Open Forms → Settings → Law Ruler.
  3. Enter your license key in the Gravity Extra License section and save. The Law Ruler API settings appear once the license is active.

Step 2: Connect Your Law Ruler Portal

Copy the endpoint URL and Key

In Law Ruler, go to Setup → 3rd Party Integrations (admin users only) and copy your API endpoint URL and Key. The same key works for every integration with your portal.

Save the settings

  • API Endpoint URL (required): paste the full address, for example https://yourfirm.lawruler.com/api-legalcrmapp.aspx. The Lawruler-Parsing.aspx variant shown by some portals is accepted too.
  • Key (required): paste it without spaces. It is stored in a masked password field.
  • Backup email for failed leads: defaults to the site admin email. If Law Ruler cannot be reached or rejects a lead, the intake details are emailed here so no potential client is lost. Leave it empty to turn it off.
Law Ruler API settings in Gravity Forms with the firm endpoint URL, masked key, Address format OK message and backup email
Forms → Settings → Law Ruler after saving a valid endpoint URL and key.

The endpoint must be your firm’s lawruler.com address. For security, the add-on only accepts a secure https:// address ending in .lawruler.com with the path /api-legalcrmapp.aspx (or /Lawruler-Parsing.aspx) and nothing after “?” or “#”. This keeps your key from ever being posted to another website.

Your first submission confirms the key

Law Ruler does not offer a test call that is safe to run, so saving only checks that the URL is a secure Law Ruler address and that the key looks complete. Submit one sample intake after setup and check the Law Ruler box on the entry screen to confirm the key works.

Step 3: Create a Law Ruler Feed

Open your intake form, go to Settings → Law Ruler and click Add New. The button is available once a valid endpoint URL and key are saved.

Contact details

Map First Name and Last Name, or a single Full Name field. A middle name is sent only together with a first and last name. Law Ruler’s default intake form also expects a cell phone and an email, so map both whenever your form collects them. Optional extras include a second email, home and business phones, a business name and a Date of Birth (sent as MM/DD/YYYY).

Law Ruler feed contact mapping with first name, last name, email and cell phone mapped to Gravity Forms fields
Contact mapping from the Name, Email Address and Mobile Phone fields.

Address

Map the parts of a Gravity Forms Address field, plus an optional County field; values are sent as entered.

Law Ruler feed address mapping with street, address line 2, city, county, state and ZIP
Address mapped from the Home Address field and a separate County field.

Case details and custom intake fields

Enter the Case Type as plain text or insert a merge tag such as {Type of Case:6} to use the visitor’s choice. Map the visitor’s story to Case Summary / Message and, if you like, internal text to Notes / Conversation. Under Contact Preferences you can map the preferred contact method, best time to call and language.

Use Law Ruler Custom Fields for the questions on your Law Ruler intake form. Enter the field ID from Law Ruler’s Intake Form Builder (for example 2215 or custom2215) and pick the form field; the add-on sends it as custom2215. Custom field IDs belong to a case type. You can also enter another Law Ruler parameter name, such as Gender, or a custom value with merge tags.

Law Ruler feed Case Details with case type merge tag, case summary, contact preferences and two custom intake field IDs
Case Details: case type from the Type of Case field, the case summary, contact preferences and two custom intake fields.

The case type must match Law Ruler exactly. Law Ruler only accepts case types that exist in your portal, spelled the same way (for example “Auto Accident”). When you use a merge tag, make the choice values in your dropdown identical to your Law Ruler case types. A mismatch is rejected and the entry is marked Not delivered.

Lead source and assignment

Lead Provider is shown as the marketing source in Law Ruler. It defaults to “Website”; without it Law Ruler would label the lead “Unknown API Post”. Contact Method records how the lead reached you. Add a Campaign Name (a hidden utm_campaign field works well), comma-separated Tags, a Lead Status that already exists in Law Ruler (leave empty for New Lead), and a Lead Assignee or Lead Owner written exactly as the user is named in Law Ruler.

Law Ruler feed Lead Source and Assignment settings with lead provider, contact method, campaign merge tag, tags, lead assignee and conditional logic
Lead Source & Assignment with a campaign merge tag, tags and an assignee.

Field Mapping Reference

Feed setting Law Ruler parameter How it is sent
First / Middle / Last Name, or Full Name FirstName, MiddleName, LastName / FullName First + Last when both are filled, otherwise Full Name
Email, Second Email Email1, Email2 As entered
Cell, Home, Business Phone CellPhone, HomePhone, BusinessPhone As entered
Business Name, Date of Birth BusinessName, DOB Date of Birth as MM/DD/YYYY
Street, Line 2, City, County, State, ZIP Address1, Address2, City, County, State, Zip As entered
Case Type CaseType Text or merge tag; must match a portal case type
Case Summary, Notes / Conversation Summary, Conversation As entered
Contact Preference, Best Time, Language ContactPreference, WhenToContact, Language As entered
Lead Provider, Contact Method LeadProvider, Hear Both default to Website
Campaign, Tags, Status, Assignee, Owner CampaignName, Tags, Status, LeadAssignee, LeadOwner Only when filled in
Law Ruler Custom Fields customNNNN A number becomes customNNNN; date fields are sent as YYYY-MM-DD

Privacy and Data Handling

  • The key stays private: it is kept in a masked field, sent only to your lawruler.com address and replaced with “[key hidden]” in any error text, note, log line or email.
  • Backup email contents: it lists every lead field, the reason and an entry link, so send it to an intake inbox your firm controls.
  • Consent answers: there is no dedicated consent setting. If your form asks for contact or SMS consent, map that answer to a Law Ruler custom field so your intake team sees it on the lead.

Conditional Logic

Enable Conditional Logic and choose Only send when conditions are met to decide which submissions become Law Ruler leads. For example, send only when “Were you injured?” is Yes, or create one feed per practice area with its own case type and assignee.

Developer Filter: gravityextra_lawruler_lead

The gravityextra_lawruler_lead filter lets developers change the lead fields before they are sent. It passes $lead (Law Ruler parameter names), $feed, $entry and $form, and must return the lead array. The key is added afterwards and is never passed to the filter, and reserved parameters such as Key, dupcheck and LeadId are always removed. This example tags paid-search leads on form 3:

functions.php
PHP
// Mark Google Ads leads from form 3 (field 14 is a hidden gclid field)
add_filter( 'gravityextra_lawruler_lead', function( $lead, $feed, $entry, $form ) {
    if ( (int) $form['id'] !== 3 || empty( rgar( $entry, '14' ) ) ) {
        return $lead;
    }
    $lead['LeadProvider'] = 'Google Ads';
    $lead['Tags']         = trim( rgar( $lead, 'Tags' ) . ', google-ads', ', ' );
    return $lead;
}, 10, 4 );

Checking Delivery on the Entry Screen

Entries from a form with an active Law Ruler feed show a Law Ruler box. After a successful send it shows Lead sent and the Law Ruler lead ID, and the entry notes record “Lead sent to Law Ruler (lead #…)”.

Law Ruler status box on a Gravity Forms entry showing Lead sent, the Law Ruler lead ID and a Send again anyway button
A delivered entry with its Law Ruler lead ID.

Duplicates

Law Ruler rejects a lead it already has for the same case type, matching on name, email, cell and home phone. The add-on treats that reply as delivered: the status becomes Already in Law Ruler, a note explains that no new lead was created, and no backup email is sent. Use a new name, email and phone for each test submission.

Law Ruler status box showing Already in Law Ruler with the duplicate warning and Send again anyway button
A submission Law Ruler recognized as a duplicate.

Resending a delivered entry asks first. For entries marked Lead sent or Already in Law Ruler, the box explains that Law Ruler already has the lead and shows Send again anyway. You are asked to confirm before anything is sent. Law Ruler normally rejects the repeat as a duplicate, but if the name, email or phone on the entry was edited it can create a second lead. Correct contact details in Law Ruler itself, since the primary contact’s name, phone and email cannot be updated through the API.

Law Ruler status box showing Not delivered with a Send to Law Ruler again button
An entry Law Ruler rejected, ready to resend.

Troubleshooting & FAQ

A submission did not reach Law Ruler. What happens?

The entry is kept, the status becomes Not delivered, a note records Law Ruler’s reason (“Law Ruler did not accept the lead: …”) and the backup email “Law Ruler lead not delivered — [form name]” is sent with the intake details. Fix the cause, open the entry and click Send to Law Ruler again. It reruns every active Law Ruler feed on the form whose conditions match, and is available to users who can edit entries.

The lead was rejected because of the case type or status.

Case types and statuses must already exist in your Law Ruler portal and match exactly, including spaces and capitalization. Check the choice values of the field used in your merge tag, correct them, then resend the entry. Leave Lead Status empty to use New Lead.

Law Ruler says the key is invalid.

Copy the endpoint URL and key again from Setup → 3rd Party Integrations, making sure both come from the same portal. Save and resend the entries marked Not delivered.

A custom intake field stays empty in Law Ruler.

Custom field IDs are specific to a case type. Confirm in the Intake Form Builder that the ID belongs to the case type you send and that the mapped form field had a value. Date fields are sent as YYYY-MM-DD.

The note says a contact name is required.

Every lead needs a name. Map First + Last Name or Full Name in the feed, make the field required on the form and resend. A note about the GravityExtra license means leads are paused until the license is active again; Forms → Settings → Logging gives a detailed trace.

Resource Hub

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr