How to hide empty fields on emails?

  • makeholer
    Asked on February 2, 2015 at 9:32 AM

    I've a product form, is there any way to remove the need of checking each product before selecting the quantity? Or maybe an auto-check when u select any quantity? here's the form link http://www.prontoponto.com.br/casadoconstrutor/casadoconstrutor.html

  • makeholer
    Replied on February 2, 2015 at 10:17 AM

    Ive fixed it by making it read-only and checked by default, now the problem is that all the products, even without quantitys, will be sent to the email, making it really big...

  • Kiran Support Team Lead
    Replied on February 2, 2015 at 11:26 AM

    You can hide the empty fields in the emails by enabling "Hide Empty Fields on Emails" option from Advanced tab in the Preferences.

    How to hide empty fields on emails? Image 1 Screenshot 40

    I think you should try our payment tool to have multiple products with various options. You may use Purchase Order if you are not really accepting any payments through the JotForm. Following is the sample product added to Purchase order.

    How to hide empty fields on emails? Image 2 Screenshot 51

    It'll be shown in the form as below :

    How to hide empty fields on emails? Image 3 Screenshot 62

    This may be easy and useful to you by having additional options like adding Taxes/shipping charges, etc. Please go through the following guides that can help you with this.

    http://www.jotform.com/help/165-Setting-Up-Your-First-Order-Form

    http://www.jotform.com/help/264-Create-Sub-Products-Based-on-a-Product-Option

    Hope this information helps. Please get back to us if you need any further assistance. We will be happy to help.

  • makeholer
    Replied on February 2, 2015 at 11:52 AM

    Thanks for the answer Kiran,

     

    Hidding in the menu will not work because the product is checked, but without any quantity.

     

    About the form, I was using the purchase order form, but it didn't work because u cant add multiple dropbox options on the same product making it work at the Total (u can only add 1 quantity option, the other ones will be custom options, that will not sum on the total).

  • Welvin Support Team Lead
    Replied on February 2, 2015 at 12:50 PM

    In behalf of my colleague, you're welcome.

    In your current form, the hide empty field option won't work because the product items are not connected to the dropdown options. They are simply selected by a custom script. You may consider giving users the option to check the items? Then you can revise you calculation to only include the items which are check.

    As for the multiple options, yes you are correct. You can only add one single option with special pricing in the payment integration. You need five per your current form settings so I think your workaround is the only answer.

    Thanks