function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ScriptMonkeyScriptMonkey 

Non-standard form problem

I'm writing an object-driven form manager, so you can make a form that you can select a field type, then link it to a salesforce object field, and when you submit, it will save the data into the SF field.

 

Here's the problem:

 

doing it using <apex:inputText (or Hidden or TextArea or File, etc) ends up being five or six boolean tests, for EVERY field (in the rendered attribute, is it text, if yes, show, then the next one, is it textarea, if yes, show, etc).  This makes the page loadtime considerably higher than I want, especially when you're looking at 50 or 60 fields.  My other alternative was to write the html in the class, then output it as an array of strings in a repeat.

 

This worked great for display, but now I'm not sure how to get the results back from the form into apex.  I'm open to suggestions, please let me know what you think?