### Title

Portals: Can you dynamically populate with fields?

### Post

A previous post (http://forums.filemaker.com/posts/970a5a4d74) showed how to use 'Evaluate' to obtain calculations from a list of equations. This works v. well.

However, the full list of equations contains a wide variety of variable. I would like these to be available in a portal. Since the equation would be chosen from a pop-up menu. To save space and make it easy for the user, how could I just present those variables required for that particular equation? And keep in mind, that next day, a different equation could be chosen, requiring a different set of variables to calculate it. I'm presuming that botht the variable (ie. field) and it's label would need recalled and recorded as needed.

Eg:

Disease = A, temp * 20 + kg * 5

Disease = B, temp * 15 + cm * 2

How would I only show the relevant 2 variables when A or B are chosen? Equations might have 1-6 variables but there are >6 in total.

You cannot dynamically select fields to appear in a portal.

You can, however, dynamically select what records appear in that portal. Thus, each variable could draw it's value from a different portal row.

Thus, for Disease A, the portal rows might show two rows with two fields:

temp [ ] --> brackets denote empty number field for specifying value to be used in calculation.

Kg [ ]

For Disease B

temp [ ]

cm [ ]