Hi Anthony,
Thank you for posting this code, it helped me solve an issue with listing all attached custom forms on a template in a QC view. I am able to get the form name by replacing your valuefield selection of "ID" with "category.name".
Thanks again!