Remove the first option for categories.

  • SUNLITJETS
    Asked on May 10, 2024 at 3:58 PM

    I'm working with products, they have categories, but I cannot find the place where to delete this:

    Remove the first option for categories Screenshot 20

    That phrase shouldn't appear but i can't deleted. Is it possible to do so?

    Thank you,

    Enzo

  • Lorenz JotForm Support
    Replied on May 10, 2024 at 9:04 PM

    Hi Enzo,

    Thanks for reaching out to Jotform Support. We can use Custom CSS code to remove that part of the dropdown. Let me walk you through it:

    1. In the Form Builder, click on the blue Roller Paint icon.

    2. From the Form Designer panel, select the Styles Tab. 

    3. Next, scroll down a bit and add the code below inside the Inject Custom CSS area. 

    /* Product List: Remove 'Por Hacer' from category dropdown */
    span.selected-values {
    display: none !important;
    }

    Remove the first option for categories Screenshot 20

    Give it a try and let us know if there's anything else we can help you with.

  • SUNLITJETS
    Replied on May 11, 2024 at 1:46 PM

    Hello,

    Thank you for your explanation, it worked in the upfront, thanks, but when you display the categories to choose from, is still there, any way to remove it?

    Remove the first option for categories Screenshot 20

  • Christopher JotForm Support
    Replied on May 11, 2024 at 2:26 PM

    Hi Enzo,

    Thanks for getting back to us. Please inject the provided CSS code.

    /*Remove the first option from categories - 14763111*/
    .options > div:nth-child(1) {
        display: none !important;
    }
    /*Code ends here*/

    Result:

    Remove the first option for categories Screenshot 20

    Give it a try and let us know how it goes.

  • SUNLITJETS
    Replied on May 11, 2024 at 6:53 PM

    PERFECT!! THANK YOU!

  • SUNLITJETS
    Replied on May 11, 2024 at 7:29 PM

    Is it possible in products, to leave the ones with prices as they are and the ones that say free to replace it the word free by contact us?


    Remove the first option for categories Screenshot 20 Screenshot 10


    Because some will have prices and some not, but the ones that do not have a prices should appear the word contact us.

    Thank you

  • Ravi JotForm Support
    Replied on May 12, 2024 at 12:33 AM

    Hi Enzo,

    Thanks for getting back to us. As your earlier issue got resolved, I moved your new question to another thread and help you with that here.

    Reach out again if you need any other help.


 
Your Answer