kpcollier Posted June 19, 2019 Report Share Posted June 19, 2019 I'm trying to find a way to hide calculated values in my Details section if the amount is equal to $0.00. I have tried with rules and my own JS but can't get it to work. Here is an example showing 5 rows with $0.00 that I am trying to hide. Thanks! Quote Link to comment Share on other sites More sharing options...
Alison Posted June 20, 2019 Report Share Posted June 20, 2019 Hello @kpcollier, Try to use this JavaScript code and change the empty value to $0.00: Quote Link to comment Share on other sites More sharing options...
DefinitelyNot31337 Posted June 20, 2019 Report Share Posted June 20, 2019 You may sandwich your fields in two HTML Blocks (HTML Editor Disabled). Opening Block: <table ff-value="[@field:myFieldThatResultsToZeroOrNot]"> Closing Block: </table> After then, you may specify a CSS Rule in your header to hide the tables that have the attribute ff-value = "0" Use this snippet (Header): <style> [ff-value="[@field:myFieldThatResultsToZeroOrNot]"] { display: none; } </style> Hope this helps. Regards, DN31337! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.