Is there a way to view certain columns based on a condition. For example, I want columns to be rendered based on the data type of an object.
What I mean is like this:
<apex:column rendered="test.data_type == Select List">
</apex:column>
Also, I want multiple columns to be generated depending on how many specific data types are in that object. If it has two items with string data type, it should render two columns in the output with string input fields. P.S. I have no experience with javascript, if that is part of your answer. Thank you.
To elaborate, what I want to do is that the user would be able to choose an item from a drop down menu and then they can press an add button. This will cause a a table with 2 columns and one or more rows to generated. Each row would have a name field and an input or output. The items are created in a different setup page and the page I am talking about will generate line items based on my item setup. So for different items there could be a different amount of rows and they should also be able to add multiple items so they are stackable.