Title: Adding extra data/field after form submit
Last modified: August 21, 2016

---

# Adding extra data/field after form submit

 *  Resolved [Kostas Pappas](https://wordpress.org/support/users/kostas-pappas/)
 * (@kostas-pappas)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-extra-datafield-after-form-submit/)
 * Hello and thanks for such a great plugin. I have a question though. In a form
   with priced fields, is it possible to keep the form’s total in a variable or 
   hidden field somewhere? I have tried with several actions and filters but nothing
   seems to affect the $_POST data submitted each time.
 * I need to implement something in the lines of :
 * `$total = $_POST['amount_1'] + $_POST['amount_2'] +`…
    `return $total;`
 * and plug it with the rest of the data so as to be included in the db entry and
   perhaps the notification email.
 * [https://wordpress.org/plugins/visual-form-builder/](https://wordpress.org/plugins/visual-form-builder/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Kostas Pappas](https://wordpress.org/support/users/kostas-pappas/)
 * (@kostas-pappas)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-extra-datafield-after-form-submit/#post-4624480)
 * PS I have installed Pro version with Payments Add On
 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-extra-datafield-after-form-submit/#post-4624592)
 * Hi Kostas,
 * This forum is for the free version. I’d be happy to answer your question on the
   [Pro support ticket system](http://support.vfbpro.com).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding extra data/field after form submit’ is closed to new replies.

 * ![](https://ps.w.org/visual-form-builder/assets/icon-256x256.png?rev=1205840)
 * [Visual Form Builder](https://wordpress.org/plugins/visual-form-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-form-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-form-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-form-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-form-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-form-builder/reviews/)

## Tags

 * [extra fields](https://wordpress.org/support/topic-tag/extra-fields/)

 * 2 replies
 * 2 participants
 * Last reply from: [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/adding-extra-datafield-after-form-submit/#post-4624592)
 * Status: resolved