PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Remove the + and - feature on the drop downs and radio buttons

  1. How do I remove the function where either dropdown or radio button calculates the + and - on the price of the user?

    If I have a dropdown or a radio button with different prices.
    ex:
    First $ 100
    2nd $ 200
    3rd $ 300
    If I choose option number 1, the price will disappear after the text and product numbers 2 and 3 are recalculated to $ 100 and $ 200. The sum is recounted on each product and the customer knows that he can pay the $ 100 extra for option 2 instead of only $ 100 at option 1.

    I know that, but I want the price to be displayed all the time without dropdown or radio button recalculates prices.

    (If I choose to display checkboxes instead it works, the price displayed all the time and it does not recalculate the price.)
    I have found a solution by creating multiple checkboxes instead of one checkbox with multiple options. The problem that happens is that the compilation of the order is wrong for the customer.

    Is that possible to change?

    Hope you understand, my english is not very good =)

    Posted 12 years ago on Wednesday September 5, 2012 | Permalink
  2. The problem is that I want the customer to just be able to choose one of the options. As a dropdown or radio button. (Not checkboxes)

    If I create several checkboxes the customer still can choose more than one option.

    Posted 12 years ago on Wednesday September 5, 2012 | Permalink
  3. Do you have a link to your form so we can see what you're talking about? Thank you.

    Posted 12 years ago on Wednesday September 5, 2012 | Permalink
  4. No I have not, unfortunately .. = / Since the page is not published yet.

    But if you create a radio button or a drop down in the original plugin and you'll see what I mean immediately.

    Posted 12 years ago on Wednesday September 5, 2012 | Permalink
  5. a pricing option field

    Posted 12 years ago on Wednesday September 5, 2012 | Permalink
  6. Can you export your form as XML (Import/Export menu, then the top menu item "Export Forms") and email it to me at chris@rocketgenius.com please?

    Thanks

    Posted 12 years ago on Wednesday September 5, 2012 | Permalink
  7. I just want the recalculation removed from dropdown and the radiobuttons...(price fields)
    U see the problem when create one.

    Dont have to send my own form, not necessary.

    Only want the price to been showed all the time, the original price... not recalculated.

    Is it possible?

    Posted 12 years ago on Thursday September 6, 2012 | Permalink
  8. I see what you mean now: thank you for your patience.

    It does not look like there is a filter or function to allow you to change this. The display and calculation seems to be handled by wp-content/plugins/gravityforms/js/gravityforms.js, around line 417-436, in my installation (the gformGetOptionLabel function.) There is a filter available to affect the display of the option price (or price change), but I do not see a way to always show it. Here is the filter: http://www.gravityhelp.com/documentation/page/Gform_format_option_label

    I see how it is working with radio buttons and drop downs. And you can't use check boxes because you only want to allow one to be selected. How about if you worked around this restriction by limiting the number of checkboxes which can be selected? See this tutorial. http://gravitywiz.com/2012/06/11/limiting-how-many-checkboxes-can-be-checked/

    That way, you could use the built in pricing options that are used on checkboxes, but limit the user's selection to one check box.

    Posted 12 years ago on Thursday September 6, 2012 | Permalink
  9. ditokazi
    Member

    I Also have the same issue, I find the script here useful, I just need to know where I implement on what php page? http://www.gravityhelp.com/documentation/page/Gform_format_option_label

    Posted 12 years ago on Tuesday September 11, 2012 | Permalink
  10. JavaScript will go in you theme's header.php file. Instructions can be found here: http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    Posted 12 years ago on Wednesday September 12, 2012 | Permalink