https://github.com/nicko170/ninjaforms-salesforce
This is a really dodgy integration between Ninja Forms WordPress Plugin and Salesforce.
https://github.com/nicko170/ninjaforms-salesforce
forms ninja ninja-forms php plugin salesforce wordpress wordpress-plugin
Last synced: about 1 month ago
JSON representation
This is a really dodgy integration between Ninja Forms WordPress Plugin and Salesforce.
- Host: GitHub
- URL: https://github.com/nicko170/ninjaforms-salesforce
- Owner: nicko170
- License: gpl-3.0
- Created: 2021-11-04T03:11:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-04T08:30:12.000Z (over 4 years ago)
- Last Synced: 2025-06-16T13:14:09.379Z (12 months ago)
- Topics: forms, ninja, ninja-forms, php, plugin, salesforce, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ninja Forms - Salesforce
This is a very dodgy custom hook that lets you take subsmissions on a [Ninja Form](https://ninjaforms.com/) in your wordpress website and create them as a Salesforce contact on a dummy account.
This is used for a newsletter signup form, because I didn't feel the need to spend $30.00/year on a plugin for this. All these plugins add up, man.
## Installation
* You *must* have Ninja Forms installed - so do this now. I'll wait.
* Install this plugin
```sh
cd /var/www/html/wp-content/plugins/
git clone https://github.com/nicko170/ninjaforms-salesforce
```
* Activate the plugin in Wordpress Admin Interface
* Under the Ninja Forms -> Salesforce Config menu, configure your connection settings
* *Salesforce Domain*: This is your Salesforce Lightning Domain, for example, https://internet.my.salesforce.com/
* *Salesforce Username*: Your Salesforce login email. I recommend using a service account
* *Salesforce Password*: Your Salesforce login password
* *Salesforce Security Token*: Your [Salesforce User Security Token](https://help.salesforce.com/s/articleView?id=sf.user_security_token.htm&type=5) that bypasses 2FA for APIs
* *Salesforce Client ID*: Create a [Connected App](https://help.salesforce.com/s/articleView?id=sf.connected_app_create.htm&language=en_US&r=https%3A%2F%2Fwww.google.com%2F&type=5), it'll give you a Consumer Key. Put that here.
* *Salesforce Client Secret*: Enter the Consumer Secret from the Connected App
* *Salesforce Company Name*: This will be the name of the company that all form submissions get sent to.

## The form
This is the *really* dodgy part :-)
**Create a Ninja Form, which _must_ have at minimum 3 fields.
* These 3 fields MUST have a label with the following text, they'll be picked up and posted to the contact in Salesforce
* First Name
* Last Name
* Email

Under the Emails & Actions settings, add a WP Hook action with the following Hook Tag: ninja_forms_salesforce_action

Test your form, and check your Salesforce.
## License
[GNU General Public License v3.0](LICENSE)
## Found a bug?
Feel free to open a Pull Request :-)