This tutorial will cover the options present under the ‘Shortcode Forms’ Tab in WP-CRM Settings
The Shortcode Forms Table of WP-CRM settings contains the following options:
On the right side you can see a section with the title ‘Fields’. If you observe carefully, this section will display all the attributes you set in the Data table. You can now choose which of the fields you want to display on your website, in your form. You do not need to display all of the fields. Just check the fields you want displayed.
Below the Roles dropdown, you can see two check boxes.
Display text are for custom message: If checked by you, will display a small textbox, which lets your users enter a custom message while filling out your form. This is good way for the users to send you a quick comment or question.
Send message notification even if no message is submitted: If checked will notify you even if a users attempts to fill out your form, with actually hitting submit. Once all the options on the Shortcode Forms page are set, do not forget to click Save Changes.
You can make multiple forms at any time. If you select the ‘Add Row’ option located at the bottom, it will create a new form template for you and you will again need to go through and set all the above mentioned options on that form as well.
Once you have saved you form, simply select the shortcode that is automatically generated and copy it. Now you are free to paste it in a new or existing post, page or any other custom post type that you use, in WordPress, and publish it.
You can have multiple forms of the same page/post of on different pages on your website. Every form just needs to have a unique name.
To see list of variables you can use in wp_crm_contact_system_data open up the "Help" tab and view the user data structure. Any variable you see in there can be used in the subject field, to field, BCC field, and the message body. Example: [user_email] would include the recipient's e-mail.
To add notification actions use the wp_crm_notification_actions filter, then call the action within wp_crm_send_notification() function, and the messages association with the given action will be fired off.
Options: You can set default role to use for new contacts(Administrator, Editor, Author, Contributor, Subscriber). WP-CRM creates user profiles, if only temporary, to store inquiries and messages from contact forms.
This is a list of attributes that can be added to the form shortcodes, to change various aspects of the form.
[wp_crm_form form=example_from display_notes=true success_message="Your message was successfully sent!" submit_text="Send message!"]