• Resolved dongoldi

    (@dongoldi)


    Hi Codepeople, hope you’re doing well.

    How do count the number of fields filled by a user. For example. I’ve fieldname from fieldname2 to fieldname11 and a user fills till fieldname7, the calculated field should shows 6.

    • This topic was modified 10 months, 3 weeks ago by dongoldi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @dongoldi

    You only need to modify a little the previous equation:

    (function(){
    let values = [fieldname11|r, fieldname10|r, fieldname9|r, fieldname8|r ,fieldname7|r, fieldname6|r, fieldname5|r, fieldname4|r, fieldname3|r, fieldname2|r, fieldname1|r],
    counter = 0;
    
    for(let i in values) if(value[i] != '') counter++;
    
    return counter;
    })()

    Best regards.

    Thread Starter dongoldi

    (@dongoldi)

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘counting the number of fields filled by a user’ is closed to new replies.