MAM Contact Form

Installation and Setup

This plugin enables you to add a Contact Us type form on the mobile app – either on the main navigation or the left menu. Basic fields include Name, Email, Phone, Subject and Description. These fields can be expanded using filters provided by the plugin. Installation Instructions Installation Instructions
  1. Install the MAM Contact Form Manager plugin in your site using the Software menu on Mobile App Manager in the WP Admin area of your site.
  2. Ensure gravity Forms is installed on your site.
  3. Add a form to Gravity forms for Contact us…or whatever you ant to call it.
  4. On the Mobile App Setting page in the Form settings in Gravity Forms, select the Form Purpose and hit save.
  5. Add the following fields: Name, Email, Phone, Subject and Description. When setting up the Phone and Email, change the special handling in the Mobile App settings so the proper keyboard is displayed on the app.
  6. Map the fields to the appropriate field on the Mobile App settings for the field in Gravity Forms.
  7. Add the form to the app using the App Setup menu under Mobile App Manager.
  Developer Features You can add additional fields to the form, then connect them to the notification to the admin by using the mam_gf_get_form_settings_fields_contact_form filter. The filter has one parameter: $fields – which is an array of fields to include on the form. Be sure to add to this array, then return it to add the additional fields to the form notification. After a form is processed, we call an action so you can do additional processing if desired. That hook is mam_contact_form_contact_processed. To use it, just add an action to your code like this add_action( ‘mam_contact_form_contact_processed’, ‘my_function’ ); Then in my_function add your custom code. If you need to populate additional fields with predefined values, then you can use this filter mam_contact_form_populate_contact. It has one parameter, $form. You can modify the values of your custom fields, and then return the form for the app. Note – the plugin populates Name, Email and Phone for logged in users that have that info in their user account.

Enable Multiple Contact Types in the Same Form

You can add a Contact Reason field to the form. Then when the form is processed, a different notification can be triggered for each reason type. To set the up go to the Contact Form menu under Mobile App Manager, then select a notification for each reason type.