In our Calendar Db, we have a Cancel button on our “Class” form programmed with the formula below. When a user clicks “Yes”, only the first command on the list executes (EditDocument), but beyond that, none of the remaining commands execute. Can someone tell me what I am doing wrong here? Thanks!
Subject := “Training Class Request Cancelled” ;
Message := “The training class below has been cancelled due to minimum participant level not being met. Please check the database for future classes, or contact your area Training Specialist. We are sorry for any inconvenience this may have caused you.”;
var:=@Prompt([YesNo]; “Verify Cancellation”;“Are you sure you want to cancel this class?”);
@If(var=1;
@Command ([EditDocument] ; “1”) ;
@SetField (“Cancelled” ; @Today) ;
@MailSend (@Unique (ParticipantTL) ; “” ; “” ; Subject ; Message ; “”) ;
@Command ([ToolsRunMacro] ; “(Remove Trakker Doc)”) ;
@Command ([FileSave]);“”)