
Hi everyone,
Is the functionality of having a total value at the bottom of a list/view possible? If I were to request shareholder information from our clients and I need the % share to sum up to 100%, how can this be done? Also is there an OOTB validation whether the value is at 100% or exceeding 100%?
Thanks in advance
Regards,
Adrian
Hi @apangeles,
if I understand you correct you want to create field with a sum saying on how many posts of the entire posts are currently in your list. Is that correct?
You can use liquid and fetch the rows. Use a for loop and a variable to count the amount of rows inside your table.
Paste that variable into a <p id='amountRows'>{{ % amountOfRowsFromLiquid % }}<p>
Just make sure that you have all needed privileges for the table. After that depending on how your view is set up. Use JQuery to count the rows inside your table and do a simple calculation. Fill that inside your created text field and display the number on your page. Concatenate with a % sign and you will have what I assume you want.
--------------------------------------------------------------------------------------
Hope that helps.
If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.