Get patient list- HTML Forms

I want to get a list of patients via a HTML Form. (list of patients who are marked as ‘YES’ by another HTML form entry.) Is it possible to access multiple patients from openMRS html forms? If so, How? (Glad if anyone could give an example form) :slight_smile: