I've seen this come up in the forum a few times lately. So, I thought I'd write a blog on how to use indexOf() in a form action. This can be used for many things. The most common use is to make another field required based on multiple selections either in a multiselect field or across multiple fields. However, once you know how to evaluate and compare multiple values with indexOf, you can really do whatever you want with the results.