Jump to content

JS not submitting the data to the table

Recommended Posts

I've been trying to trouble shoot this and even ChatGPT isn't giving me anything useful...  

I have a tabular data report with a details page. Because I have additional buttons to allow my users to navigate my form by buttons, I need to use a virtual field and script to stop the form from submitting before they've tabbed through all the sections. This script works wonderfully on my submission datapages, and it's worked on other details pages before (though they're filtered and go straight to the details page). On this datapage I can't get this to pass the data into the datatable. If I remove the JS, the form submits the data to the table (but then the user can't move between the sections with the buttons). With the script, the submit button just returns the user to the table results page without submitting the data to the data table. 

Any ideas on what might be missing?  


My script in the footer:


document.addEventListener('BeforeFormSubmit', function () {

if (document.getElementById("cbParamVirtual1").checked) {

else {


... Plus additional JS


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...