Title: Issue with increment button
Last modified: March 6, 2020

---

# Issue with increment button

 *  Resolved [mushiepops](https://wordpress.org/support/users/mushiepops/)
 * (@mushiepops)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/)
 * Hi!
    The plugin is working amazingly but I encountered minor problem and I don’t
   know why it isn’t working. I follow the instructions here [https://wordpress.org/support/topic/calculated-form-fields-plus-minus-button/](https://wordpress.org/support/topic/calculated-form-fields-plus-minus-button/)
   to create plus/minus button. The minus works fine, it subtracts properly. The
   +1 however is literally just adding 1. It shows up 11 instead of 2, and if I 
   add more it just add another one: 111 and so on. Not sure what the problem is.
   Thanks in advance.

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

 *  Thread Starter [mushiepops](https://wordpress.org/support/users/mushiepops/)
 * (@mushiepops)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/#post-12514770)
 * In addition, is it possible to create a remove button for fieldset? Thanks again.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/#post-12515032)
 * Hello [@mushiepops](https://wordpress.org/support/users/mushiepops/)
 * In javascript the plus (+) operator is overloaded, it is used for summing numbers
   or concatenate texts. If any of operands is a text, the concatenation take precedence.
   The solution would be solve the ambiguity wit an operation that not affects the
   result, as follows:
 *     ```
       var f = jQuery('[id*="fieldname1_"]');f.val(f.val()*1+1);f.change();
       ```
   
 * Concerning to your second question, I’m sorry but I don’t understand it totally.
   If you want to insert a button into a fieldset, select the fieldset field inserted
   in the form, and then, press the button control in the left bar.
 * Best regards.
 *  Thread Starter [mushiepops](https://wordpress.org/support/users/mushiepops/)
 * (@mushiepops)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/#post-12515253)
 * Hello again,
 * Thank you for the quick reply and taking the time to explain it to me, really
   appreciate it. As for my second question, I was referring to a feature we normally
   see on cart page in e-commerce site: besides the number field with increment/
   decrement button, there is also an “x” or remove button where user can delete
   the product in case they changed their mind…is that possible or is it a feature
   only available on premium? Thank you so much.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/#post-12515283)
 * Hello [@mushiepops](https://wordpress.org/support/users/mushiepops/)
 * The solution depends on the project. For example, if you have a button inserted
   into a fieldset field, and you want that pressing the button the fieldset be 
   hidden, and ignored the contained fields from the equations, the onclick event
   of hide button would be similar to:
 *     ```
       jQuery(this).closest('fieldset').hide().find('*').addClass('ignore');
       ```
   
 * But as I said the code would depend on project.
 * If you need additional help implementing your project, please, do not hesitate
   in contact us through our private website: [Customization](https://cff.dwbooster.com/customization)
 * Best regards.
 *  Thread Starter [mushiepops](https://wordpress.org/support/users/mushiepops/)
 * (@mushiepops)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/#post-12518319)
 * Hi,
 * This is perfect, thank you for all the help.

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

The topic ‘Issue with increment button’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mushiepops](https://wordpress.org/support/users/mushiepops/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/issue-with-increment-button/#post-12518319)
 * Status: resolved