HI,This is a simple question, but just can not figure out.
To make it simple,I have a field on form with validation formula: for example:
@If(Field1=“”;@Failure(“you have to enter Field1”);@Success)
On Save &Close button, I have code as:
@Command([FileClose]);@Command([FileCloseWindow])
But this just give user warning message, the document still saved.
I want the window stays open until user enter data on Field1 field, then save close it.
Anybody can give some hints how to write formula on Save Close button?
Thanks
Subject: @if
@if(@command([FileSave]);@command([FileCloseWindow]);“”)
Subject: it does not work if click on X sign on a pupup form
Thanks, it works if I add the Save Close button on the action bar of a form.However, the button I have added is in the middle of a form, the reason is that it will be opened by an agent from action manu. When the form is popped up, there is X sign on the right corner, user still can click the X to close the window, and the invalid entry on the validation field can be saved.
Any idea about this, I want to prohabit user for any invalid entry, if user click X to close, but I do not want the invalid entry to be saved.