Hi,Can anyone help. I have been doing this for a zillion years, but for some reason in r6 it doesn’t want to know.
Here’s the problem.
If I make a form and put one field on it called TEST and a simple validation formula in the validation event - @If(Test=“”; @Failure(“failed”); @Success);
And add a simple button with @Command([FileSave]) in it,
All works well except that when the validation doesn’t fail the form just saves and re-opens in edit. Not very useful. This appears to be the result of having the “use javascript” database property ticked. Remove the tick and lose some useful features, but regain the $$Return field.
So, as a workaround I have been since r5 forst came out, either using the $$Return or adding @URLOpen(the_URL_to_go_to) after the Save command in the button. Doing that in r6 however seems to prevent validation working, it just saves the form and continues to the given URL regardless of whether the form failed validation or not.
HAs anyone got the answer or a better solution that @URLOpen (without using JavaScript to validat)