=load( local!exchanges, local!classes, a!sectionLayout( label: "Lorem Ipsum", firstColumnContents: { a!checkboxField( label: "Exchange", labelPosition: "ABOVE", choiceLabels: {"CBOT", "CME","COMEX","NYMEX"}, choiceValues: {"CBOT", "CME","COMEX","NYMEX"}, value:local!exchanges, saveInto: { local!exchanges, a!save( local!classes, if( isnull(local!exchanges), null, fn!choose( length(local!exchanges), if( local!exchanges="CBOT", append(split({"a","b","c"},";")), if( local!exchanges="CME", append(split({"d","e"},";")), null ) ), if( length(wherecontains(local!exchanges,{"CBOT", "CME"})) = 2, append(split({"a", "b","c","d","e"},";")), null ), if( length(wherecontains(local!exchanges,{"CBOT", "CME","COMEX"})) = 3, append(split({"a", "b","c","d","e","f"},";")), null ), if( length(wherecontains(local!exchanges,{"CBOT", "CME","COMEX","NYMEX"})) = 4, append(split({"a", "b","c","d","e","f","g"},";")), null ) ) ) ) }, validations: {} ) }, secondColumnContents: { /* Add components here for a two-column section */ a!checkboxField( label: "Class", labelPosition: "ABOVE", choiceLabels: {"a", "b","c","d","e","f","g"}, choiceValues: {"a", "b","c","d","e","f","g"}, value:local!classes, saveInto: {local!classes}, validations: {} ) }, validations: {} ) )