<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hans,</div><div><br></div><div>The latest version of Fox isn't working for me.</div><div><br></div><div>1) First I installed the latest version of Fox, but not Foxedit. My invalid input redirection problem was unabated:</div><div><br></div><div>(a) When the edit form is called, the URL shows "...n=MyPage?action=foxedit&amp;...".&nbsp;</div><div><br></div>(b) But when the form encounters invalid input, it displays an error message and gives the user a chance to correct the error. However, the URL now shows "...n=MyForm" and nothing else after it. Pressing cancel leaves the user on the form. Pressing enter causes the form to be the target of the update.<div><br></div><div>2) Then I tried installing the latest version of Foxedit as well, to see if that would fix the problem. That caused my form to simply return me to the target page when invalid input is submitted. No error message or chance to correct.</div><div><br></div><div>3) I then tried using Foxedit to edit an anchored section (using code that had previously worked). My old code didn't work now.&nbsp;</div><div><br></div><div>4) So I modified the code to make the form explicit:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; white-space: pre-wrap; ">{[foxedit #to_do_current 'Edit current' form=Edit.EditMessageForm]}&nbsp;</span></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; white-space: pre-wrap; ">The above still brings up the EditSectionForm - not the form that I specified.</span></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"><br></span></font><div>Randy</div><div><br></div><div><br><div><html>On Apr 12, 2008, at 2:12 PM, Hans wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">Saturday, April 12, 2008, 7:00:38 PM, Randy wrote:<br><br><blockquote type="cite">Does anyone have any suggestions as to how to redirect the user back &nbsp;<br></blockquote><blockquote type="cite">to the calling page when a fox form encounters invalid input? The only<br></blockquote><blockquote type="cite">thing I can think of is to use cookies, which I'm trying to avoid.<br></blockquote><br><blockquote type="cite">On the calling page:<br></blockquote><blockquote type="cite">{[foxedit label="MyTarget" form=MyForm]}<br></blockquote><br><blockquote type="cite">On my form page I have:<br></blockquote><blockquote type="cite">(:fox myform template=MyTemplate target=MyTarget redir={*$FullName}:)<br></blockquote><br><blockquote type="cite">If the user provides invalid input on the form, the redirection after<br></blockquote><blockquote type="cite">pressing submit or cancel fails. The user ends up staying on the form<br></blockquote><blockquote type="cite">page.<br></blockquote><br>I am failing to see the problem. Perhaps all you need to do is to<br>change the form to<br><br>(:fox myform template=MyTemplate target={$EditTarget} redirect=1 :)<br><br>{$EditTarget} is provided by FoxEdit. Any abort from submission<br>resulting from an invalid input determined by foxcheck will<br>take you back to the calling page automatically, and not leave you on<br>the form page. This improvements have been added to FoxEdit with the<br>last update 2008-03-29.<br><br> &nbsp;~Hans<br><br></blockquote></div><br></div></div></body></html>