Skip to content Skip to sidebar Skip to footer

Javascript Auto-post With Name

I have an OnBase e-Form that I'm building. There are three buttons on the form that all submit. OnBase does different things based on the name of the button used to submit the form

Solution 1:

There's a click() method on links, buttons, checkboxes. For example , I submitted this comment by running document.getElementById('submit-button').click() from chrome's command line.


Solution 2:

I know I am a little late to this post, but you can try and leverage a cookie to get this done:

if (document.cookie.indexOf('xref=true', 0) < 0) {

    // Set the xRef cookie, so we do not fire it again for this form.
    document.cookie = 'xref=true';

    //alert(document.cookie);
    document.getElementById("OBBtn_CrossReference").click();
}
else {

    document.cookie = "xref=false";
    //alert(document.cookie);
}

I tested this on the Thick and Thin clients in 10.0 and it worked fine.

The postings on this site are my own and don't necessarily represent my company's positions, strategies or opinions.


Post a Comment for "Javascript Auto-post With Name"