WordPress.org

Forums

Usernoise modal feedback / contact form
Example of custom fields (2 posts)

  1. Old
    Member
    Posted 3 years ago #

    Hi there,

    Could you give us some example in how to add custom fields on the form?

    Cheers,

    http://wordpress.org/extend/plugins/usernoise/

  2. karevn
    Member
    Plugin Author

    Posted 3 years ago #

    I am still developing my site - going to publish a full tutorial there. But here are a couple of keypoints:
    - Render your custom fields in un_feedback_form_body action.
    - Save your custom field values in un_feedback_created action that receives id of the post created and $_POST parameters with slashes stripped.
    - Validate your fields in un_validate_feedback filter. It receives an array of validation errors. If you'll return an empty array - Usernoise thinks that validation passed with OK result.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Usernoise modal feedback / contact form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags