Support for populating the form with custom doc fetched with criteria