Jodie Posted June 1, 2023 Report Share Posted June 1, 2023 Hi I'm not sure what I've managed to do wrong today. This script worked yesterday and stopped my page from submiting. My user could select any of my filter buttons and the filter worked. Today I've made a few changes - I switched to a new view (which included table change to a smaller table without lookups) and changing the html inside the doc to the new table. But I can't understand how any of these changes would affect the script. Given I haven't provided any condition for a submit, I would have thought this script would stop submission entirely. <script> document.addEventListener('BeforeFormSubmit', function () { event.preventDefault(); }); </script> Quote Link to comment Share on other sites More sharing options...
Jodie Posted June 1, 2023 Author Report Share Posted June 1, 2023 Worked it out - my one field I used was display only. Once I created a virtual text field, this worked again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.