Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#828188
Hi Team
I have a script which displays if entries in two grids are balanced/unbalanced. However, I would like to go a step further and hide 'Submit' button if grids are not balanced, and show 'Submit' button if grids is balanced. I've also been advised there can be situations where an entry is 'unbalanced' which is correct, hence I have created a dropdownA which has 'BalancedJournalEntry' and 'UnbalancedJournalEntry' showing.

If 'BalancedJournalEntry' is selected, then immediately the Submit button should disappear till the two grids are balanced. If 'UnbalancedJournalEntry' is selected, then Submit button shows and there is no need for grids to be balanced. Please Help :D :)

$( "#submit0000000001" ).click(function() {
  var sum1 = $('#sum-gridVar003-text0000000015').val();
        var sum2 = $('#sum-gridVar004-text0000000016').val();
  if(sum1 == sum2)
          alert("BALANCED");
        else
            alert("UNEQUAL");
});
#830005
Hi heemalkumar,

if you put the form inside a GRID you can access them via javascript, here is the documentation

https://wiki.processmaker.com/3.1/Grid_Control#Accessing_Grids_with_JavaScript

also your code could be something like this:

$('#gridTesting').on('change', 'select, input', function() {
//function to check values and either hide or show button
}
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]