Enter Key

Hello,

I have “Login” button on a form. I have @Formula, in it which opens up certain page based upon hidden field values which gets computed upon user clicks on “Login” button. I have following code in “Login” button,

@Command([ViewRefreshFields]);@Command([RefreshHideFormulas]); @If(Field1 = “Y”;@URLOpen(url);Field2 = “Y”;@URLOpen(url);“”)

I have JS Code which is a Pass thru HTML on form,

Subject: Enter Key

Manish,

Hitting the Enter key on the web while on a page with at least one input field will by default submit the page. To prevent this, make sure the form doesn’t go anywhere as shown below for the $$ViewTemplateDefault form where the following lines are marked as pass-thru HTML…

…embedded view goes here…

I am not sure about what your code is doing, but an onKeyPress JavaScript event can capture the Enter key and redirect the user to a JavaScript function.

Ken