Hi,
I have forms for my project and i have inserted a field called Status on each of those.
When a new user opens the form, the status is “Composing” however when they submit the form by pressing the button, i have got the status to change to “Form Submitted” and the admin staff is able to see this status change also when following the doc link on the email.
On the same form, the admin staff will need to open the second form to record more information so the status would still be “Form Submitted”. However, when the user has filled the form… they will have to save the changes by pressing on the save button which is just a simple file save command. Once the user has pressed the save button, the approve and reject button then appear (as these were currently hidden) and the admin user will then have the option of whether to approve or reject the request.
If the admin user clicks on the approve button, again an email will be sent out and the status will change to “approved”…if for some reason the admin user needs to reject the form after approving it i need to status to change to “rejected” but the status dont appear to work.
Im not very good at lotus script so i have used formula.
and this is what my code is so far…
@If(Status=“”; “Form Submitted”; Status); This is put on the status field
Approve Button***
Approved
@SetField(“Status”; “Approved”);
@Command([FileSave]); @MailSend(“user/IT/blah”; “user/IT/blah”; “”; “Request Form: Approval Confirmation”; “This an e-mail notification is for FYI purposes only.” + @NewLine + @NewLine + “Attached is a link with a copy of the new IT request and event logging form from the following person: " + @UserName;”";[IncludeDoclink]);
@Command([FileSave]);
@Command([FileCloseWindow])
reject***
@SetField(“Status”; “Reject”);
@Command([FileSave]); @MailSend(“user/IT/blah”; “user/IT/blah”; “”; “Request Form: Reject Confirmation”; “This an e-mail notification is for FYI purposes only.” + @NewLine + @NewLine + “Attached is a link with a copy of the new IT request and event logging form from the following person: " + @UserName;”";[IncludeDoclink]);
@Command([FileSave]);
@Command([FileCloseWindow])
Does anyone know what Im doing wrong??
Thanking you in advance