Title: Customization Advice
Last modified: August 22, 2016

---

# Customization Advice

 *  [boby2k](https://wordpress.org/support/users/boby2k/)
 * (@boby2k)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customization-advice/)
 * This is a great plugin on its own but need three more features added. I am familiar
   with HTML, PHP and SQL and was wondering if you could point me in the right direction
   as to adding the below three features.
 * I included a mockup on what I am trying to get at here:
    [http://keytax.info/images/joined_2.jpg](http://keytax.info/images/joined_2.jpg)
 * 1) Make the service action occur conditionally. This would be similar to how 
   conditional confirmation and conditional fields work. Each 3rd party service 
   would have the option of using conditional logic. If the rules don’t match don’t
   post to service.
 * 2) Merge tags ‘Field Picker’ to populate submitted values in the Form Submission
   Field. Similar to the Merge Tags drop down in the confirmation page.
 * 3) Adjust pattern formatting for certain fields like date,timestamp and phone
   numbers. Specifically for separators and order.
    Certain integrations need phone
   and dates in a specific format. When having two or more integrations that require
   different date or number formats his would come in handy.
 * Examples :
    **–DASH Separator** ‘YYYY-DD-MM’ ‘DD-MM-YYYY’ ‘YYYY-MM-DD’ ‘MM-DD-
   YYYY’ 555-555-5555
 * /**/ slash Separator**
    ‘YYYY/DD/MM’ ‘DD/MM/YYYY’ ‘YYYY/MM/DD’ ‘MM/DD/YYYY’
 * **. Separator**
    ‘YYYY.DD.MM’ ‘DD.MM.YYYY’ ‘YYYY.MM.DD’ ‘MM.DD.YYYY’ 555.555.5555
 * **None**
    5555555555
 * Thanks in advance any help is appreciated.
 * [https://wordpress.org/plugins/forms-3rdparty-integration/](https://wordpress.org/plugins/forms-3rdparty-integration/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [zaus](https://wordpress.org/support/users/zaus/)
 * (@zaus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/customization-advice/#post-5447133)
 * All great ideas; [Pull requests](https://github.com/zaus/forms-3rdparty-integration/compare)
   welcome 🙂
    1. To apply the conditional logic, you’d hook like I just mentioned [here](https://wordpress.org/support/topic/sfdc-mc-from-gravity-forms-with-admin-approval?replies=3#post-6202930).
       As far as the nice admin ui you mocked-up, you could hook to `service_settings`
       seen [here](https://github.com/zaus/forms-3rdparty-integration/blob/master/plugin-ui.php#L155),
       like my other add-on plugins (like [Xpost](https://github.com/zaus/forms-3rdparty-xpost/blob/master/forms-3rdparty-xpost.php#L158)
       do). Making that field selector dropdown would be more complicated, and is [a really good idea](https://github.com/zaus/forms-3rdparty-integration/issues/22)
       and should be part of the way my plugin [handles the different integrations](https://github.com/zaus/forms-3rdparty-integration/blob/master/includes.php#L33).
       The [form plugin integrations](https://github.com/zaus/forms-3rdparty-integration/tree/master/plugins)
       should attach themselves to the forms3rdparty singleton
    2. Would use the same field picker as in the above, and would solve [Issue 22](https://github.com/zaus/forms-3rdparty-integration/issues/22)
       and make users love you forever.
    3. Would use hook [`service_filter_post`](https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L452)
       or [`service_filter_args`](https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L478)
       to modify the post body based on your criteria, which would ideally be part 
       of the `$service` argument.
 * #2 and #3 of the admin ui would rely on currently non-existant hooks to [`plugin-ui.php`](https://github.com/zaus/forms-3rdparty-integration/blob/master/plugin-ui.php),
   specifically around [line 208](https://github.com/zaus/forms-3rdparty-integration/blob/master/plugin-ui.php#L208).
   There are a couple hooks for that admin page (aforementioned [`service_settings`](https://github.com/zaus/forms-3rdparty-integration/blob/master/plugin-ui.php#L155),
   [`service_metabox`](https://github.com/zaus/forms-3rdparty-integration/blob/master/plugin-ui.php#L267),
   [`service_metabox_after`](https://github.com/zaus/forms-3rdparty-integration/blob/master/plugin-ui.php#L279)),
   but they’re not really in the right places for some of the features you wanted.
 * I’d be happy to work with you on this, either adding some hooks so you can write
   a new plugin (#1 is a great candidate) or working to add the features directly(#
   2 definitely). Just send me a message through my website or make a github issue.
 * I would point out that I’m hesitant to include more data to the service configs
   within the plugin (as opposed to writing an add-on to do this) like #1 and #3,
   as it’s not something [I think](https://github.com/zaus/forms-3rdparty-integration/issues/19)
   is usually needed, and might cause conflicts for _some_ users. ([At the moment](https://github.com/zaus/forms-3rdparty-integration/issues/20))
   everything is saved to the `wp_options` table as a single setting, so there is
   a limit to how much data can be stored (i.e. too many fields/services make it
   blow up) _(Aside: this plugin started out smaller in scope)_.

Viewing 1 replies (of 1 total)

The topic ‘Customization Advice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/forms-3rdparty-integration.svg)
 * [Forms: 3rd-Party Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forms-3rdparty-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forms-3rdparty-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/forms-3rdparty-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forms-3rdparty-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forms-3rdparty-integration/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [zaus](https://wordpress.org/support/users/zaus/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/customization-advice/#post-5447133)
 * Status: not resolved