You can use the APEX_ITEM package to create form elements dynamically based on a SQL query instead of creating individual items page by page.
APEX_ITEM
Scripting on this page enhances content navigation, but does not change the content in any way.