This topic is locked

force entry into fields if another has any text

2/10/2012 11:02:57 AM
ASPRunnerPro General questions
M
mfred author

I have an application with groups of fields. Because there are multiple groups, I cannot make the fields required. So I was thinking that there might be code that can force entry requirements on fields if anything is typed in other field. For instance, let's say that I have the following groups of fields.
NewBusinessStartDate1

AccountNumber1

AccountName1

NewBusinessCriteria1

ServiceType1
NewBusinessStartDate2

AccountNumber2

AccountName2

NewBusinessCriteria2

ServiceType2
NewBusinessStartDate3

AccountNumber3

AccountName3

NewBusinessCriteria3

ServiceType3
We are seeing some people entering the account name but skipping one or more of the other fields. So I would like to force entries into all fields within a group if the account name in that group has an entry. Any help is appreciated.

Sergey Kornilov admin 2/10/2012

You can use Javascript API to make certain fields required based on other field values.
Check examples at http://xlinesoft.com/asprunnerpro/docs/ctrl_addvalidation.htm