Category: Tutorials

Creating Merge tags

This guide is based on the assumption that you’re setting your plugin up using our Kozo plugin template creator. The first step in setting up new merge tags is registering the merge tag in the constructor of the main plugin file. To do this we need to use add_action to hook into ninja_forms_loaded and register …

Creating Merge tags Read More »

Filter Email CSV Name

Filter the name of the email CSV can be done with the ninja_forms_submission_csv_name filter.

Filter Email “From” Address

Action settings can be filtered time of form submission using the ninja_forms_run_action_settings filter. An example of using this filter is setting a global override of the “From Address” for all forms.

Adding Attachments to Emails

Additional attachments can be added to a Ninja Forms email using the ninja_forms_action_email_attachments filter. This filter passes an array of attachments, a copy of the raw form data, and the settings for the form. View the code on Gist.

Dynamic List Fields

A field’s settings can be set dynamically when the form is rendered on the page – this is when the field data is “localized” to the page for use by the form. Dynamic Field Settings The list field types uses a list options’ selected setting to determine the default value(s) of a field. This is …

Dynamic List Fields Read More »

Dynamic reCAPTCHA Language

The language of the reCAPTCHA is stored as a Ninja Forms setting, which can be dynamically set on page load to accommodate multi-lingual sites or language specific forms. View the code on Gist. Example Change the reCAPTCHA language for the entire site. View the code on Gist. Example Per Form Change the reCAPTCHA language for …

Dynamic reCAPTCHA Language Read More »