isleshocky77/ninja-forms-session

Wordpress plugin and Ninja Forms add-on which allows you to save form data to the current session and then use it elsewhere.

3.0.5 2017-08-01 19:51 UTC

This package is auto-updated.

Last update: 2024-05-07 15:20:43 UTC


README

This is ninja-forms-session. A Wordpress plugin and Ninja Forms add-on which allows you to save form data to the current session and then use it elsewhere.

Usage

Merge Tags

  • Navigate to editing a Form 1
    • Go to Emails & Actions and add "Save to Session"
    • Note the the FIELD KEY under Administration of a field (e.g. first_name)
  • Navigate to editing a Form 2
    • Go to Form Fields and configure a field
    • Under DEFAULT VALUE use the MergeTag {session:FIELD_KEY} (e.g. {session:first_name})

Short Codes

  • Navigate to editing a Form 1
    • Go to Emails & Actions and add "Save to Session"
    • Note the the FIELD KEY under Administration of a field (e.g. first_name)
  • Navigate to editing a Page
    • Add ShortCode [nf_session_field_value field_key=FIELD_KEY] (e.g. [nf_session_field_value field_key=first_name])

Advanced

  • Field values are stores in session:FIELD_KEY
  • Field's Calc Values are stored in session:FIELD_KEY:calc
  • Choice Field's Labels are stored in session:FIELD_KEY:label

Session Expiration

By default sessions expire in 30 minutes due wp_session_expiration

License

ninja-forms-session is licensed under GPLv3.

ninja-forms-session is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ninja-forms-session is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ninja-forms-session.  If not, see <http://www.gnu.org/licenses/>.