L
Lloyd
I have a form with 7 tabs. On my second tab is where the user enters
information to a person block that has name, address, date of birth, etc. On
this form it can have multiple person records.
Each person record has a person type and a case type. Those 2 fields are
critical to determining what other fields within that person type needs to be
completed.
For example if persontype = victim and casetype = murder, then the user must
complete field5, field6, and field7, but only within that record, not the
other person records.
What frequently happens is the user doesnt complete all the fields they need
to on the person block. They either go onto a new person block or they
change tabs.
What I'm trying to do is that if the user changes tabs and something is
missing from a person block, I need to check each person block but based on
the person type and case type fields and if the user has a null value in one
of the required fields, the code will switch back to tab 2 and highlight the
fieds in red for that specific record.
In my first attempts of writing this code, I found that the background color
gets changed in for example the last name field for all the records, and not
just the record I want.
I'm really kinda lost on how to do this, it sounds complex and maybe it
is..but it seems like I should be able to somehow look at each record and
apply a specific set of rules to that record based on the persontype and
casetype and then say which fields were missed and highlight those fields for
that record only, then check the next record and do the same.
Is this possible? Any suggestions on how to proceed?
thanks!
information to a person block that has name, address, date of birth, etc. On
this form it can have multiple person records.
Each person record has a person type and a case type. Those 2 fields are
critical to determining what other fields within that person type needs to be
completed.
For example if persontype = victim and casetype = murder, then the user must
complete field5, field6, and field7, but only within that record, not the
other person records.
What frequently happens is the user doesnt complete all the fields they need
to on the person block. They either go onto a new person block or they
change tabs.
What I'm trying to do is that if the user changes tabs and something is
missing from a person block, I need to check each person block but based on
the person type and case type fields and if the user has a null value in one
of the required fields, the code will switch back to tab 2 and highlight the
fieds in red for that specific record.
In my first attempts of writing this code, I found that the background color
gets changed in for example the last name field for all the records, and not
just the record I want.
I'm really kinda lost on how to do this, it sounds complex and maybe it
is..but it seems like I should be able to somehow look at each record and
apply a specific set of rules to that record based on the persontype and
casetype and then say which fields were missed and highlight those fields for
that record only, then check the next record and do the same.
Is this possible? Any suggestions on how to proceed?
thanks!