I’m pretty new to Domino Designer and pretty much all programming for that matter. I am creating a simple (for most) database for a user. When the user clicks on the Submit Action button, I am trying to validate that all the fields are populated before submission. If the fields do have items in them, then I would like a box saying Success or something and then have the document saved, closed and an email to be sent to someone. I have been trying to use the @if statement, but this just seems like a lot of work. Is there an easier way of going about this? Here is the code that is in the Submit button:
@If (
@IsNull (Extension); @Prompt ([Ok];"Error";"Please Enter an Entension Number");
@IsNull (Subject); @Prompt ([Ok];"Error";"Please Enter a Subject");
@IsNull (Attendees); @Prompt ([Ok];"Error";"Please Enter the Number of Attendees");
@IsNull (DateBegin); @Prompt ([Ok];"Error";"Please Enter the Date Needed");
@IsNull (RoomPreference); @Prompt ([Ok];"Error";"Please Select a Room");
@IsNull (RoomSetup); @Prompt ([Ok];"Error";"Please Select the Setup Type needed for the Room");
@IsNull (StartTime); @Prompt ([Ok];"Error";"Please Indicate a Start Time");
@IsNull (EndTime); @Prompt ([Ok];"Error";"Please Indicate an End Time");
@Prompt ([Ok];"Success"; "Success");
@MailSend("John Doe/Acme Company";"";"";"You have a request for a room";"";"Comments");
@Do(@Command([FileSave]); @Command([FileCloseWindow])))
This does work up to a point. It will validate everything and if everything is correct. I get the prompt of Success, but the @mailsend and @do statement aren’t working. If this because the @Prompt ([Ok];“Success”; “Success”) statement is the Else Action portion of the @if statment?
Thanks for the help.