fetch data from subform in page

fetch data from subform in page

Bit of newbie question here:

I'm working on an app where there are two forms:

form name: section_builder
field1: letterTitle
field2: textSnippets

There is a subform:

form_name: text_snippets
field1: snippetTitle
field2: snippetContents

Field 2 in form 1 is a multi-value selector which corresponds to field 1 in form 2.

What I want to do is create a deluge script in a page which will simply output a list of all the text snippets that correspond to a single letterTitle. I have read the article  https://www.zoho.com/creator/help/script/fetch-records.html, which gives clues as to how to do this if the code is placed within the form definitions themselves. What I can't work out is how to do this if the code lives in isolation on a page. Can anyone help?