Hello hackermans Need quck fix if possible.
I want to count how many users submited input elements form to database and than I want to display it at the regular page. User input elements will show in database in one row, if I have try submitions I will have three rows, and I want to display number 3 at the page.
@igormatanovic032 Please post the editor URL of your site. Only authorized Wix personnel can get access to your site in the editor.Please include the name of the page involved.
@yisrael-wix In my DB collection ‘User_inputs’ im collecting submited forms from my users. Every form is collected in one row with different cattegory name (‘Kategorija’). For example, someone submited form ‘Stojeća pipa’. So, I want to count how many times someone submited ‘Stojeća pipa’ in my DB and display it as a number in my page ‘Aktivni poslovi’.
If i have three entries of Stojeća pipa in my DB collection, I want no. 3 displayed in tex box on my regular page.
Im not surre did I make right code, I found it at forum for someone asking for similar or same proble. I really apprisiate your help and it would be awesome if you could make tkat work.
@igormatanovic032 You are using the field totalCount: let totalCount = results.totalCount;
but this field does not exist in the User_inputs collection.
If all you are trying to do is to see how many times a category record appears in the collection, you can use the .count() function, something like this:
@yisrael-wix Once again, tkanks for your time, I’m not feeling confortable to bother you any more. It still doesnt work, I guess I’m doing something wron. Will try to learn more about this.
@yisrael-wix Hey, sorry…it does working…You missed _ in DB collection name ‘User_inputs’ instead of ‘User inputs’.
Thanks a lot. Once again appologies for previous comment.