Need pid hidden field for form
Check if workflows exist before using it