here is my code. i have told the form to do this: if form is new and sent: show thank you note
if form is read and saved: show in read mode. i have tried the code sent to me earlier and modified it but now, when i sent or saved i get a page cannot be displayed. i can’t figure out why? do you see something wrong with my code that i cannot see? here it is:
dbl := @DbLookup(“”;“”;“KeywordLookup”;“ContentHomeURL”;4);
TempURL:=@If(@IsError(dbl);“”;dbl);
HomeURL:=@If(TempURL!=“”;TempURL;“javascript:history.go(-2)”);
contentURL:=@ReplaceSubstring(HomeURL;“~”;“/”+@ReplaceSubstring(@Subset(@DbName;-1);“\”;“/”));
REM {Warning: Lots of raw HTML in here…};
UNID:=@Text(@DocumentUniqueID );
yy :=@Text(@Year(date));
mm := @Text(@Month(Date));
@If(@Length(mm)=1;@Set(“mm”;“0”+mm);“”);
@If(chkDelete=“Delete”;
“[/”+@ReplaceSubstring(@Subset(@DbName; -1);" “;”+“)+”/WebDelete?OpenAgent&“+UNID+”]";
“”);
REM {Display after sent};
Thanks := “
Your form has been submitted!
”;
DominoHomePage := "<a href="javascript:self.close()" target=_self>Close ";
Msg := Thanks + DominoHomePage ;
REM {Display after saved};
tmpUNID:=@Text(thisUNID);
tmpDBURL:=DBUrl;
tmp:=“[” + tmpDBURL + “/0/” + tmpUNID + “?OpenDocument]”;
@If(@IsNewDoc;Msg;tmp)