I need to create a webform preview page for a client's website that uses many multipage webforms. The idea is to allow a preview so website users can prepare for the requirements of the form before they start.
I am currently extracting and re-printing the component data available via the
webform_component_list() function, which is convenient but is very limited. The
webform_component_list() function's purpose is for use in an email settings options list and preparing an email to be sent. Unfortunately I can't get it to display a hierarchy lower than the first level and their is no attribute data related to the form fields which I need to better loop through and add display formatting.
What functions/methods are available already through webform to access this dataset or do I need a DB query?
Picture of the limited formatting:
Note: I have looked through the webform module and various other files within the folder structure. I have already put work into this and have a working version, it just doesn't have enough data about the form structure to better layout the page during a loop. The purpose is a "webform preview page", i.e. a list of all components allowing users to see what they need. This is explained above. I would like insight from anyone who may have insight into the webform module.