Hello All,
I have created a form that has an action. The action checks that all the mandatory fields are filled in and then it send a mail to a user that is set in one of the fields.
I then want to change the value of two more fields when the mail is sent. and for the form to save and close
Here is my code:
@Command([FileSave]);
FIELD Status:=Status;
FIELD DateSentCSP:=DateSentCSP;
@If
(
ProsNewClientName = “”;@Prompt([Ok] ; “Error!” ; “You must enter a new client name!”):@Command([EditGotoField] ; “ProsNewClientName”) ;
Radio1=“”; @Prompt([Ok] ; “Error!” ; “You must enter a choice for Question 1 to continue”):@Command([EditGotoField] ; “Radio1”) ;
Radio2=“”; @Prompt([Ok] ; “Error!” ; “You must enter a choice for Question 1(a) to continue”):@Command([EditGotoField] ; “Radio2”) ;
Radio3=“”; @Prompt([Ok] ; “Error!” ; “You must enter a choice for Question 2 to continue”) :@Command([EditGotoField] ; “Radio3”) ;
Radio4=“”; @Prompt([Ok] ; “Error!” ; “You must enter a choice for Question 2(a) to continue”):@Command([EditGotoField] ; “Radio4”) ;
@MailSend(User;“”;“”;“Client Acceptance Form to be approved”;“”;"Can you please look at the following Client Acceptance form for approval and forward onto the Business Unit Leader for approval using the Mail Business Unit Leader Button >>> ";[Sign]:[IncludeDoclink]):
@SetField(“Status”;“Sent to CSP”):
@SetField(“DateSentCSP”;@Today):
@Command([FileSave]):@Command([CloseWindow]))
The Mail send works, the fields change and the window save and closes but I am still gettin and error that says
“Incorrect data type for operator or @Function: Number expected”
The Status field is a computed text field and the DateSentCSP is a editable date/time field
The status and the DateSentCSP fields change so it looks lie the code is working but then I still get the error. Any ideas?
Thanking you in advance,
Laura