=load( local!a, local!b, local!c, with( a!formLayout( label: "Lorem Ipsum", instructions: "Lorem Ipsum", firstColumnContents: { a!sectionLayout( label: "Lorem Ipsum", firstColumnContents: { a!textField( label: "Lorem Ipsum", labelPosition: "ABOVE", value: local!a, saveInto: local!a, refreshAfter: "UNFOCUS", validations: {}, align: "LEFT" ) }, secondColumnContents: {} ), if(not(isnull(local!a)),{},{ a!sectionLayout( label: local!b, firstColumnContents: { a!integerField( label: "Lorem Ipsum", labelPosition: "ABOVE", value: local!b, saveInto: local!b, refreshAfter: "UNFOCUS", validationGroup: "UPDATE", align: "LEFT" ) }, secondColumnContents: { a!textField( label: local!c, labelPosition: "ABOVE", value: local!c, saveInto: local!c, validationGroup: "UPDATE", refreshAfter: "UNFOCUS", validations: {if(local!c="0","Error",{})}, align: "LEFT" ) }, validations: {} )}) }, secondColumnContents: {}, buttons: a!buttonLayout( primaryButtons: { a!buttonWidgetSubmit( label: "Submit", style: "PRIMARY", validationGroup: "UPDATE", value:true, saveInto: ri!cancel ) }, secondaryButtons: { a!buttonWidgetSubmit( label: "Cancel", style: "NORMAL", value: true, saveInto: ri!cancel, skipValidation: true ) } ), validations: {if(local!c="0",a!validationMessage(message: "Error",validateAfter: "SUBMIT"),"")}, validationGroup: "UPDATE" ) ) )