load( local!datetime, local!trigger: false, a!formLayout( label: "Test Date Time", firstColumnContents: { a!dateTimeField( value: local!datetime, saveInto: { local!datetime, a!save( local!trigger, true ) }, validations: { if( and( not( isnull( local!datetime ) ), local!datetime < now() ), "Please Enter a Date and Time in the Future", null ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidgetSubmit( label: "Submit", style: "PRIMARY", saveInto: {} ) } ), validations: { if( and( local!trigger, isnull( local!datetime ) ), "Please Enter a Date and Time", null ) } ) )