I am trying to implement conditional states for the webform I designed through Drupal 9 UI. For the conditional states:
- I want to display Total Due Accounting element (and hide Total Reimbursement) when the Advance Total (a hidden element that is sum of New Advance and Carry-over amount elements) is greater than Item Total element;
- Display Total Reimbursement element (and hide Total Due Accounting) when the Advance Total element is less than or equal to Item Total.
I have attached two screenshots for both conditions I have created.
When I tested with Advance Total less than Item Total, only Total Reimbursement element is displayed with negative number, which is not what I wanted. May I seek for a help to improve my conditions?
Thank you