How can I create a numbered configurable list widget?

  • laurahonjas
    Asked on February 28, 2018 at 3:03 PM

    hello- Also can I automatically number each row in the first column of the widget?

  • Support_Management Jotform Support
    Replied on February 28, 2018 at 4:12 PM

    I'm afraid there's no real way to achieve this with an infinite number of entries. But if you will limit the number of MAXIMUM ROWS NUMBER, then you can use CSS to emulate a numbered Configurable List Widget.

    How can I create a numbered configurable list widget? Image 1 Screenshot 30

    The idea is to use a static text field that will serve as the number. Going with the example screenshot above, if you will limit the rows to just 3, then you can use the following setup:

    1. Make sure you add : static : as the very first line of the widget on the GENERAL tab.

    How can I create a numbered configurable list widget? Image 2 Screenshot 41

    2. Then on the CUSTOM CSS tab, paste these codes:

    #list > tbody > tr:nth-child(2) > .col1 { font-size: 0; }

    #list > tbody > tr:nth-child(2) > .col1:after {

        content: '1. ';

        font-size: 14px;

    }

    #list > tbody > tr:nth-child(3) > .col1 { font-size: 0; }

    #list > tbody > tr:nth-child(3) > .col1:after {

        content: '2. ';

        font-size: 14px;

    }

    #list > tbody > tr:nth-child(4) > .col1 { font-size: 0; }

    #list > tbody > tr:nth-child(4) > .col1:after {

        content: '3. ';

        font-size: 14px;

    }

    Complete guide: How-to-Inject-CSS-Codes-to-Widgets