Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: ArturoRobles

#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");
});

Hello ProcessMakers! We are extremely proud to an[…]

How processmaker load cases on home page of user? […]

Hey everyone, I'd appreciate any help you might be[…]

Error dynaform xml pm3

Thanks for sharing .