• Resolved spark_1

    (@spark_1)


    I’ve set up Slack integration for my forms and it’s working beautifully. however, I’ve run into a roadblock when customizing those Slack messages.

    I don’t want anything fancy – just one line that says “New Submission from Name of Form” which will serve just fine to tell me to go check the submission.

    The instruction footnote says “By default sent message will include ALL FIELDS as attachment using Forminator Format to ease you up, more information about attachment can be found?here.”

    That link confuses me more than helps. All I want is to remove all of the fields (since this form will be quite long).

    Is there an easy way to set it up to NOT include all of the form fields? Just the default: New submission from {form_name} that’s already there?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @spark_1

    I hope you are doing well.

    The link is just to demonstrate how Slack and Forminator handle it, but we pinged our developers to verify if we can unset all fields keeping only the message.

    We will keep you posted.
    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @spark_1 ,

    You can try using this filter

    /**
    			 * Filter arguments to passed on to Send Message Slack API
    			 *
    			 * @since 1.3
    			 *
    			 * @param array                                $args
    			 * @param int                                  $form_id                Current Form id.
    			 * @param string                               $connection_id          ID of current connection.
    			 * @param array                                $submitted_data
    			 * @param array                                $connection_settings    current connection setting, contains options of like <code>name</code>, <code>target_id</code> etc.
    			 * @param array                                $form_entry_fields      default entry fields of form.
    			 * @param array                                $form_settings          Displayed Form settings.
    			 * @param Forminator_Addon_Slack_Form_Settings $form_settings_instance Slack Addon Form Settings instance.
    			 */
    			$args = apply_filters(
    				'forminator_addon_slack_send_message_args',
    				$args,
    				$form_id,
    				$connection_id,
    				$submitted_data,
    				$connection_settings,
    				$form_entry_fields,
    				$form_settings,
    				$form_settings_instance
    			);

    kind regards,
    Kasia

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @spark_1 ,

    We haven’t heard from you for over a week now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slack Integration – customize message’ is closed to new replies.