= load( local!exchanges, local!exchanges1, 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", "f", "g" }, ";" ) ), if( local!exchanges = "COMEX", append( split( { "f" }, ";" ) ), if( local!exchanges = "NYMEX", append( split( { "a", "b", "f" }, ";" ) ), 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 ) ) ) ) } ), a!checkboxField( label: "Exchange2", labelPosition: "ABOVE", choiceLabels: { "ABC", "XYZ" }, choiceValues: { "ABC", "XYZ" }, value: local!exchanges1, saveInto: { local!exchanges1, a!save( local!classes, if( isnull( local!exchanges1 ), null, fn!choose( length( local!exchanges1 ), if( local!exchanges1 = "ABC", append( split( { "a", "b", "c" }, ";" ) ), if( local!exchanges1 = "xyz", append( split( { "d", "e", "f", "g" }, ";" ) ), null ) ) ) ) ) } ) }, secondColumnContents: { 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: {} ) )