I need to make all the fields on my website database driven so I can do field level tracking and assign validations/field types etc to each field type. Current schema:
L_SystemFields
sys_field_id
name
L_Fields
field_id
sys_field_id (fk to L_SystemFields)
name
This allows me to link this:
Field 1 = Username on login page
Field 2 = Username on signup page
Now both fields are technically the same - 'username' so they have the same sys_field_id & name in L_SystemFields. But to do field tracking they need a unique ID so they have a different field_id and name in L_fields like username1, username2.
The question is: In the html form what am i pulling in - the field_id, sy_field_id, name (from L_SystemFields) or name (from L_Fields) or something else? As far as i know, field names should be unique per page which works in this case but wont work in a case where i have multiple of the same fields on a page like user profile where i can add multiple colleges i attended. In this case how to name the fields and what values to use?